diff options
author | James Almer <jamrial@gmail.com> | 2017-03-28 01:14:17 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-03-28 01:14:17 -0300 |
commit | 3fe7bb2bcf1963c3a7bc0f955ffb77cc3184d8f6 (patch) | |
tree | 6c758c29c458a8ee7b0a9aa4cd3b079a20e15f54 /libavcodec/extract_extradata_bsf.c | |
parent | b613245c9715c34358522737bf0cf6a4f9392ca3 (diff) | |
download | ffmpeg-3fe7bb2bcf1963c3a7bc0f955ffb77cc3184d8f6.tar.gz |
avcodec/extract_extradata_bsf: add missing break statement to extract_extradata_vc1
Diffstat (limited to 'libavcodec/extract_extradata_bsf.c')
-rw-r--r-- | libavcodec/extract_extradata_bsf.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) { |