[FFmpeg-devel] [PATCH] ffprobe: do not try to decode empty packets.
nicolas.george at normalesup.org
Sat Apr 21 14:08:07 CEST 2012
Le tridi 3 floréal, an CCXX, Stefano Sabatini a écrit :
> OK, although I think this exposes a bug in the H.264 decoder, see:
You are right, this is the same issue. I believe my patch was simpler than
the ones there.
Also, I am not sure about this, that you wrote then:
# Indeed from my reading of the documentation there is nothing wrong
# about passing video packets with size of 0, and the expected behavior
# should be to just ignore such packets
Passing video packets means flushing the decoder, and as such can cause
changes in the internal state, such as freeing frames that can no longer be
used as reference.
On the other hand, the fact that some files caused a segfault is worrisome,
as the same result could probably be caused by specially crafted files.
> (also this patch seems to fix ticket #997, you may add a note in the
> commit message).
Added and pushed. Thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: Digital signature
More information about the ffmpeg-devel