diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-06-06 14:27:20 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-08-23 13:15:16 +0200 |
commit | 987360e76961496d58857d3815f3dfaa1afe9fa5 (patch) | |
tree | 69c03d711977af97c36ca4712257be1930e9410a | |
parent | ede92da7a660b2176323824655f37bcadd932311 (diff) | |
download | ffmpeg-987360e76961496d58857d3815f3dfaa1afe9fa5.tar.gz |
avcodec/bmp_parser: Fix remaining size
Fixes part of ticket 5598
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 250b620d296adba7bd3a3104a9c30e820fb0bc36)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/bmp_parser.c | 2 |
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; |