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 681192 - adpcmdec: decoding error with IMA WAV ADPCM in quicktime
adpcmdec: decoding error with IMA WAV ADPCM in quicktime
Status: RESOLVED DUPLICATE of bug 684684
Product: GStreamer
Classification: Platform
Component: gst-libav
git master
Other Linux
: Normal normal
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Reported: 2012-08-04 13:09 UTC by Nicola
Modified: 2016-06-01 09:42 UTC
See Also:
GNOME target: ---
GNOME version: ---

patch for 0.10 (794 bytes, patch)
2012-10-20 15:36 UTC, Nicola
rejected Details | Review
same patch for videodecoder 0.10 (794 bytes, patch)
2012-10-20 15:41 UTC, Nicola
rejected Details | Review

Description Nicola 2012-08-04 13:09:04 UTC

the following media:

show this memleak:

==21871== 240 bytes in 12 blocks are definitely lost in loss record 2,600 of
==21871==    at 0x4C2B6CD: malloc (in
==21871==    by 0x5988A57: __vasprintf_chk (vasprintf_chk.c:82)
==21871==    by 0x53F0DBA: g_vasprintf (in
==21871==    by 0x53D049C: g_strdup_vprintf (in
==21871==    by 0x4E74357: _gst_element_error_printf (gstelement.c:1895)
==21871==    by 0xBA1B483: adpcmdec_handle_frame (adpcmdec.c:427)
==21871==    by 0x9D4E2C4: gst_audio_decoder_push_buffers
==21871==    by 0x9D4E71F: gst_audio_decoder_chain_forward
==21871==    by 0x9D50DD7: gst_audio_decoder_chain (gstaudiodecoder.c:1394)
==21871==    by 0x4E91B79: gst_pad_push (gstpad.c:4710)
==21871==    by 0x8DEFB06: gst_queue_loop (gstqueue.c:1156)
==21871==    by 0x4EB84EB: gst_task_func (gsttask.c:328)
==21871==    by 0x53D8247: ??? (in
==21871==    by 0x53D79E4: ??? (in
==21871==    by 0x566AE99: start_thread (pthread_create.c:308)

using this pipeline:

gst-launch filesrc location=/tmp/ !
qtdemux name=demux demux. ! queue  ! jpegdec ! xvimagesink demux. ! queue !
adpcmdec ! alsasink

additionally adpcmdec fails to decode it while mplayer/ffmpeg can decode the media
Comment 1 Tim-Philipp Müller 2012-10-19 17:54:05 UTC
Which version of mplayer/ffmpeg can decode this? For me neither mplayer nor vlc play this properly.

VLC just plays the video without the sound, mplayer just stops with an error after a second (like GStreamer).

Also, what created this file?
Comment 2 Nicola 2012-10-19 20:10:31 UTC
dpkg -l | grep mplayer
ii  mplayer                                           2:1.0~rc4.dfsg1+svn34540-1               movie player for Unix-like systems

dpkg -l | grep ffmpeg
ii  ffmpeg                                            4:0.8.3-0ubuntu0.12.04.1                 Multimedia player, server, encoder and transcoder (transitional package)

both can play audio and video, 

the file was created with gstreamer 0.10, the recording was interrupted by a system reboot and the file recovered with qtmoovrecover
Comment 3 Tim-Philipp Müller 2012-10-20 10:39:51 UTC
Leaks are fixed now:

commit aa3ba65eb528a7f9a49eb48a2ff96fec29ad8c1c
Author: Tim-Philipp Müller <>
Date:   Fri Oct 19 19:24:23 2012 +0100

    qtdemux: don't leak gst_riff_strf_auds in case of MS/RIFF audio

commit ccbb233da839215a6631297dd587a974d27581b8
Author: Tim-Philipp Müller <>
Date:   Sat Oct 20 11:38:55 2012 +0100

    alsasink: fix caps leak in acceptcaps function

commit 277ca049766bc19ea317acd3b9ae15db179b909b
Author: Tim-Philipp Müller <>
Date:   Sat Oct 20 11:38:10 2012 +0100

    audiodecoder: don't leak message strings when error is not fatal
Comment 4 Nicola 2012-10-20 10:43:10 UTC
thanks, can these fix be applied to 0.10 too?
Comment 5 Tim-Philipp Müller 2012-10-20 11:15:07 UTC
> thanks, can these fix be applied to 0.10 too?

I have applied those to 0.10 now, but neither of those two fixes could just be cherry-picked, but required additional work. You will generally find that people are unwilling to do this additional work.
Comment 6 Nicola 2012-10-20 15:36:39 UTC
Created attachment 226889 [details] [review]
patch for 0.10

other patches are not needed for 0.10, feel free to remove me as author
Comment 7 Nicola 2012-10-20 15:41:17 UTC
Created attachment 226894 [details] [review]
same patch for videodecoder 0.10

as the previous patch, feel free to remove me as author
Comment 8 Tim-Philipp Müller 2012-10-20 17:47:37 UTC
Comment on attachment 226889 [details] [review]
patch for 0.10

I had already committed that, besides - you should have kept the original author (everything else just adds more work again..)
Comment 9 Edward Hervey 2013-07-23 12:47:50 UTC
Nicola, do you have the file available again ? Is this still an issue with current gstreamer ?
Comment 10 Nicola 2013-07-23 12:53:25 UTC
the file is available here:

still the same issue with 1.2 master (few days old)
Comment 11 Sebastian Dröge (slomo) 2014-01-20 14:46:51 UTC
Don't see any memory leaks here but it still fails to decode, yes.
Comment 12 Sebastian Dröge (slomo) 2014-01-20 14:48:34 UTC
Also fails with avdec_adpcm_ima_wav instead of adpcmdec, but plays with avplay.
Comment 13 Tim-Philipp Müller 2016-06-01 09:42:26 UTC
Works with adpcmdec, issue with avdec_adpcm_ima_wav.

*** This bug has been marked as a duplicate of bug 684684 ***