[FFmpeg-cvslog] avcodec/extract_extradata_bsf: add missing break statement to extract_extradata_vc1

James Almer git at videolan.org
Tue Mar 28 07:15:56 EEST 2017


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Tue Mar 28 01:14:17 2017 -0300| [3fe7bb2bcf1963c3a7bc0f955ffb77cc3184d8f6] | committer: James Almer

avcodec/extract_extradata_bsf: add missing break statement to extract_extradata_vc1

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

 libavcodec/extract_extradata_bsf.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libavcodec/extract_extradata_bsf.c b/libavcodec/extract_extradata_bsf.c
index e9b3791..1e92f8e 100644
--- a/libavcodec/extract_extradata_bsf.c
+++ b/libavcodec/extract_extradata_bsf.c
@@ -145,8 +145,10 @@ static int extract_extradata_vc1(AVBSFContext *ctx, AVPacket *pkt,
         ptr = avpriv_find_start_code(ptr, end, &state);
         if (state == VC1_CODE_SEQHDR || state == VC1_CODE_ENTRYPOINT) {
             has_extradata = 1;
-        } else if (has_extradata && IS_MARKER(state))
+        } else if (has_extradata && IS_MARKER(state)) {
             extradata_size = ptr - 4 - pkt->data;
+            break;
+        }
     }
 
     if (extradata_size) {



More information about the ffmpeg-cvslog mailing list