mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 21:20:41 +00:00
avformat/avidec: disable parsing for RV40
Fixes: broken_rv40.avi Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
fa5358f07d
commit
d64f7d4213
@ -817,6 +817,8 @@ static int avi_read_header(AVFormatContext *s)
|
||||
|
||||
if (st->codec->codec_tag == MKTAG('V', 'S', 'S', 'H'))
|
||||
st->need_parsing = AVSTREAM_PARSE_FULL;
|
||||
if (st->codec->codec_id == AV_CODEC_ID_RV40)
|
||||
st->need_parsing = AVSTREAM_PARSE_NONE;
|
||||
|
||||
if (st->codec->codec_tag == 0 && st->codec->height > 0 &&
|
||||
st->codec->extradata_size < 1U << 30) {
|
||||
|
Loading…
Reference in New Issue
Block a user