[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #30309] Function wavread() fails for wave file
From: |
Fardan Iqbal |
Subject: |
[Octave-bug-tracker] [bug #30309] Function wavread() fails for wave files with odd-sized RIFF chunks. |
Date: |
Thu, 01 Jul 2010 02:28:08 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.5.9-2.fc12 Firefox/3.5.9 |
URL:
<http://savannah.gnu.org/bugs/?30309>
Summary: Function wavread() fails for wave files with
odd-sized RIFF chunks.
Project: GNU Octave
Submitted by: fiqbal
Submitted on: Thu 01 Jul 2010 02:28:07 AM GMT
Category: Libraries
Severity: 3 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: Fardan Iqbal
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.2.3
Operating System: GNU/Linux
_______________________________________________________
Details:
The `wavread()' function (defined in wavread.m) fails with an error message
saying "file contains no data chunk". This happens when you try to read a
wave file that has an odd-sized RIFF chunk before the main data chunk.
After looking at wavread.m, it looks like the cause of this problem is that
the `find_chunk()' function (used by `wavread()') does not account for the
padding byte that well-formed wave files must have at the end of odd-sized
chunks.
A possible fix is to round the `chunk_size' variable up to an even number
before adding it to `offset' in the `find_chunk()' function.
Attached to this report is a wave file that demonstrates the problem. This
file contains a 79-byte list chunk with a padding byte at the end. Typing the
following command:
Y = wavread("oddchunk.wav")
will cause the error.
This bug was discovered on Fedora Core 12 running on x86_64. Octave was
configured for "x86_64-redhat-linux-gnu".
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Thu 01 Jul 2010 02:28:07 AM GMT Name: oddchunk.wav Size: 454kB By:
fiqbal
<http://savannah.gnu.org/bugs/download.php?file_id=20862>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?30309>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #30309] Function wavread() fails for wave files with odd-sized RIFF chunks.,
Fardan Iqbal <=