aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-06-06 14:27:20 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-06-06 14:27:20 +0200
commit250b620d296adba7bd3a3104a9c30e820fb0bc36 (patch)
treed0cb30fbc7895916e6776cedfdeb48f30662a451 /libavcodec
parentbfe945ac3a0c328371dc4b4cc3409b7da5784cb8 (diff)
downloadffmpeg-250b620d296adba7bd3a3104a9c30e820fb0bc36.tar.gz
avcodec/bmp_parser: Fix remaining size
Fixes part of ticket 5598 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/bmp_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/bmp_parser.c b/libavcodec/bmp_parser.c
index c9fe153de1..8111ada6f2 100644
--- a/libavcodec/bmp_parser.c
+++ b/libavcodec/bmp_parser.c
@@ -63,7 +63,7 @@ restart:
continue;
}
bpc->pc.frame_start_found++;
- bpc->remaining_size = bpc->fsize + FFMAX(i - 17, 0);
+ bpc->remaining_size = bpc->fsize + i - 17;
if (bpc->pc.index + i > 17) {
next = i - 17;