[FFmpeg-cvslog] avcodec/bmp_parser: Fix state

Michael Niedermayer git at videolan.org
Sun Jun 5 03:16:44 CEST 2016


ffmpeg | branch: release/3.0 | Michael Niedermayer <michael at niedermayer.cc> | Tue May 31 22:01:13 2016 +0200| [e5942c14363180644cd7a56c9a4b8385469e8771] | committer: Michael Niedermayer

avcodec/bmp_parser: Fix state

Fixes Ticket5598

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit d0388bd32e1c84a9ef87ba6c448c7fffb6a9f259)

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e5942c14363180644cd7a56c9a4b8385469e8771
---

 libavcodec/bmp_parser.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/bmp_parser.c b/libavcodec/bmp_parser.c
index 7ab32a0..b06e3e8 100644
--- a/libavcodec/bmp_parser.c
+++ b/libavcodec/bmp_parser.c
@@ -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)



More information about the ffmpeg-cvslog mailing list