Module: libav Branch: master Commit: 60d4c6ff76467d4d8f55c1cc61ab6c618e8ea2f3
Author: Anton Khirnov <[email protected]> Committer: Anton Khirnov <[email protected]> Date: Thu Dec 25 22:46:39 2014 +0100 h264: restore a block mistakenly removed in e10fd08a CC: [email protected] Bug-ID: 781 --- libavcodec/h264.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 67c7eef..b902422 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -1456,6 +1456,8 @@ static int decode_nal_units(H264Context *h, const uint8_t *buf, int buf_size, buf_index = find_start_code(buf, buf_size, buf_index, next_avc); if (buf_index >= buf_size) break; + if (buf_index >= next_avc) + continue; } hx = h->thread_context[context_count]; _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
