diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-06-06 14:30:40 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-06-06 14:30:40 +0200 |
commit | 37005e65eb17b1480d9e1755eeba3f50ee3b9555 (patch) | |
tree | 24890c8224939aa85a588253857b4ae260006fd8 /libavcodec | |
parent | 250b620d296adba7bd3a3104a9c30e820fb0bc36 (diff) | |
download | ffmpeg-37005e65eb17b1480d9e1755eeba3f50ee3b9555.tar.gz |
avcodec/bmp_parser: reset state
Fixes part of ticket 5598
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/bmp_parser.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/bmp_parser.c b/libavcodec/bmp_parser.c index 8111ada6f2..d2a04ef69b 100644 --- a/libavcodec/bmp_parser.c +++ b/libavcodec/bmp_parser.c @@ -69,8 +69,10 @@ restart: next = i - 17; state = 0; break; - } else + } else { + bpc->pc.state64 = 0; goto restart; + } } else if (bpc->pc.frame_start_found) bpc->pc.frame_start_found++; } |