avcodec/bmp_parser: reset state
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 6 Jun 2016 12:30:40 +0000 (14:30 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 15 Aug 2016 16:54:34 +0000 (18:54 +0200)
Fixes part of ticket 5598

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 37005e65eb17b1480d9e1755eeba3f50ee3b9555)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/bmp_parser.c

index 8111ada..d2a04ef 100644 (file)
@@ -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++;
         }