avcodec/bmp_parser: Fix state
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 31 May 2016 20:01:13 +0000 (22:01 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 31 May 2016 20:13:51 +0000 (22:13 +0200)
Fixes Ticket5598

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

index 7ab32a0..b06e3e8 100644 (file)
@@ -67,6 +67,8 @@ restart:
 
                 if (bpc->pc.index + i > 17) {
                     next = i - 17;
+                    state = 0;
+                    break;
                 } else
                     goto restart;
             } else if (bpc->pc.frame_start_found)