[FFmpeg-cvslog] h264: restore a block mistakenly removed in e10fd08a

Anton Khirnov git at videolan.org
Sat Dec 27 15:16:14 CET 2014


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Thu Dec 25 22:46:39 2014 +0100| [60d4c6ff76467d4d8f55c1cc61ab6c618e8ea2f3] | committer: Anton Khirnov

h264: restore a block mistakenly removed in e10fd08a

CC: libav-stable at libav.org
Bug-ID: 781

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=60d4c6ff76467d4d8f55c1cc61ab6c618e8ea2f3
---

 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];



More information about the ffmpeg-cvslog mailing list