[FFmpeg-cvslog] avcodec/vc1_parser: fix use of uinitialized memory

Michael Niedermayer git at videolan.org
Tue Apr 29 04:38:15 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Apr 29 04:30:53 2014 +0200| [ede411dd03950b91c6346f2a3ae0e7546555f42f] | committer: Michael Niedermayer

avcodec/vc1_parser: fix use of uinitialized memory

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavcodec/vc1_parser.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/vc1_parser.c b/libavcodec/vc1_parser.c
index 4ed14bc..0021feb 100644
--- a/libavcodec/vc1_parser.c
+++ b/libavcodec/vc1_parser.c
@@ -238,7 +238,7 @@ static int vc1_parse(AVCodecParserContext *s,
      * the start code we've already seen, or cause extra bytes to be
      * inserted at the start of the unescaped buffer. */
     vpc->bytes_to_skip = 4;
-    if (next < 0)
+    if (next < 0 && next != END_NOT_FOUND)
         vpc->bytes_to_skip += next;
 
     *poutbuf = buf;



More information about the ffmpeg-cvslog mailing list