GNOME Bugzilla – Bug 698546
avdec: Crash with some h264 streams
Last modified: 2013-04-22 08:33:31 UTC
Happens especially often on Windows, sometimes on Linux. I have a 0.10 GDP dump here that reproduces it reliably on Linux too, backtrace below. Happens after decoding a few frames without problems. Stream is avc/au. Unfortunately muxing that to anything else makes the crash go away. It happens with versions 0.6.6, 0.7.2 and 0.8.6 of libav at least so it's nothing new. Does *not* happen with the 0.10 versions of everything as in Debian/unstable, which is also libav 0.8.6.
+ Trace 231827
Thread 140737333872384 (LWP 6011)
Reverting this makes it work again, so something in libav that causes it to explode on discontinuities commit 630790f50d04a4998a37a0e01304e9196f776476 Author: Wim Taymans <wim.taymans@collabora.co.uk> Date: Fri Apr 20 16:16:25 2012 +0200 ffdec: don't flush buffers on DISCONT Don't flush the buffers that ffmpeg has on DISCONT but instead let it recove This gives a much better image in the case of packet loss. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=635020
It seems to be related to the draining that happens there, without draining nothing is crashing. In 1.0 this code is different and does not crash anymore, especially on DISCONT nothing is done at all.