avcodec/dpx_parser: fix off by 1 error
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 1 Jun 2014 18:11:30 +0000 (20:11 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 1 Jun 2014 18:14:49 +0000 (20:14 +0200)
Found-by: carl
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/dpx_parser.c

index db6ebf7..dd2a335 100644 (file)
@@ -89,7 +89,7 @@ static int dpx_parse(AVCodecParserContext *s, AVCodecContext *avctx,
         } else if (d->index > 17) {
             if (d->pc.state == MKBETAG('S','D','P','X') ||
                 d->pc.state == MKTAG('S','D','P','X')) {
-                next = i - 4;
+                next = i - 3;
                 break;
             }
         }