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

Anton Khirnov git at videolan.org
Fri Jan 9 17:18:35 CET 2015


ffmpeg | branch: release/2.4 | Anton Khirnov <anton at khirnov.net> | Thu Dec 25 22:46:39 2014 +0100| [883795fb0face00a07349fbd32f4775431a9f30d] | committer: Anton Khirnov

h264: restore a block mistakenly removed in e10fd08a

CC: libav-stable at libav.org
Bug-ID: 781
(cherry picked from commit 60d4c6ff76467d4d8f55c1cc61ab6c618e8ea2f3)
Signed-off-by: Anton Khirnov <anton at khirnov.net>

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

 libavcodec/h264.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 562b102..4bc0a03 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -1454,6 +1454,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