aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-06-06 14:30:40 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-06-06 14:30:40 +0200
commit37005e65eb17b1480d9e1755eeba3f50ee3b9555 (patch)
tree24890c8224939aa85a588253857b4ae260006fd8
parent250b620d296adba7bd3a3104a9c30e820fb0bc36 (diff)
downloadffmpeg-37005e65eb17b1480d9e1755eeba3f50ee3b9555.tar.gz
avcodec/bmp_parser: reset state
Fixes part of ticket 5598 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/bmp_parser.c4
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++;
}