summaryrefslogtreecommitdiff
path: root/libavcodec/dpx_parser.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-06-01 20:11:30 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-01 20:14:49 +0200
commitc4d88311cd90cfe5ec676413963140fa9ef41f41 (patch)
tree48013971c75851e9bb3ea2ae7112090eb3c84aa4 /libavcodec/dpx_parser.c
parentd41a4a765b702f89d1f757d9c96e25be8fa77016 (diff)
avcodec/dpx_parser: fix off by 1 error
Found-by: carl Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dpx_parser.c')
-rw-r--r--libavcodec/dpx_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dpx_parser.c b/libavcodec/dpx_parser.c
index db6ebf7ddf..dd2a335c67 100644
--- a/libavcodec/dpx_parser.c
+++ b/libavcodec/dpx_parser.c
@@ -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;
}
}