]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vc1_parser.c
Merge commit 'd3f5b94762fb803c0f3b29f9ad6c5eaa813998ba'
[ffmpeg] / libavcodec / vc1_parser.c
index 4ed14bccbe59d1eff40845ce544e8c36f09bd995..0021febaf56bd569a6aa173b7e28d0cfa84b248a 100644 (file)
@@ -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;