adpcmdec: WAV IMA ADPCM files don't get decoded correctly
Submitted by tia..@..il.com
Link to original bug (#727975)
Description
Created attachment 274009
Audio file that can reproduce the problem
The problem has been described in detail on the mailing list:
http://lists.freedesktop.org/archives/gstreamer-devel/2014-April/047322.html
Basically if i try to play a IMA ADPCM WAV file, the playback gets a lot of gaps on it and only the half of the duration of the file is actually played.
Also, querying the duration of the audio in time gets in result half of the actual duration.
I'm attaching a example file that can be used to reproduce the problem, just try to play it with adpcmdec and it is clear that it is not working properly:
gst-launch-1.0 filesrc location=test-adpcm.wav ! wavparse ! adpcmdec ! audioconvert ! pulsesink
The file seems to be ok and valid, and plays correctly using "play".
file test-adpcm.wav
test-adpcm.wav: RIFF (little-endian) data, WAVE audio, IMA ADPCM, mono 8000 Hz
Attachment 274009, "Audio file that can reproduce the problem":
test-adpcm.wav
Version: 1.2.1