Hi, I encountered $subj, with a (possibly broken, but I am not sure) h264 stream, where the packet (or rather the rest of it) decoded in try_decode_frame contained 3 bytes, and avcodec_decode_video consumed no bytes, causing an infinite loop.
More precisely, the last three bytes being processed were [54, 239,
162] and h264.c:decode_frame always bailed out on the following
condition:
if (!s->current_picture_ptr && h->nal_unit_type == NAL_END_SEQUENCE) {
The attached patch adds a break if the decoder consumes no bytes and
produces no picture.
Regards,
--
Jindřich Makovička
0001-avoid-infinite-loop-in-try_decode_frame.patch
Description: Binary data
_______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
