After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 736266 - wavparse: error in reading adtl chunk
wavparse: error in reading adtl chunk
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Linux
: Normal normal
: 1.4.2
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-09-08 13:16 UTC by Peter G. Baum
Modified: 2014-09-13 13:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
A standard 16-bit stereo WAVE file (115.40 KB, audio/x-wav)
2014-09-08 13:16 UTC, Peter G. Baum
  Details
wavparse: fix reading of adtl chunk (1.28 KB, patch)
2014-09-08 13:19 UTC, Peter G. Baum
rejected Details | Review

Description Peter G. Baum 2014-09-08 13:16:11 UTC
Created attachment 285648 [details]
A standard 16-bit stereo WAVE file

The attached file cannot be read, i.e. 

gst-launch-1.0 --gst-debug=wavparse:5 filesrc location=files/stereol.wav ! wavparse ! filesink location=q.raw

does not produce any output.

File courtesy of http://www-mmsp.ece.mcgill.ca/Documents/AudioFormats/WAVE/Samples.html.
Comment 1 Peter G. Baum 2014-09-08 13:19:53 UTC
Created attachment 285649 [details] [review]
wavparse: fix reading of adtl chunk

The patch looks good to me and fixes this file. That means it produces the same output as sox.
But I don't have further files with adtl chunks.
Comment 2 Sebastian Dröge (slomo) 2014-09-12 12:09:13 UTC
The parsing of the adtl chunks was more broken then that, your patch fixed skipping of them though ;)

commit a9d7c1d95e2e2182a7a91530ae0d85aed2972d8f
Author: Sebastian Dröge <sebastian@centricular.com>
Date:   Fri Sep 12 15:06:50 2014 +0300

    wavparse: Fix parsing of adtl chunks
    
    We have to skip 12 bytes of data for the chunk, and the data size
    passed to the sub-chunk parsing functions should have 4 bytes less
    than the data size.
    
    Also when parsing the sub-chunks, check if we actually have enough
    data to read instead of just crashing.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=736266