From 3fe7bb2bcf1963c3a7bc0f955ffb77cc3184d8f6 Mon Sep 17 00:00:00 2001 From: James Almer Date: Tue, 28 Mar 2017 01:14:17 -0300 Subject: [PATCH] avcodec/extract_extradata_bsf: add missing break statement to extract_extradata_vc1 --- 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 e9b3791dc0..1e92f8ebdb 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) {