mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-25 12:19:52 +00:00
avformat/avidec: Skip duplicate strf chunks
Fixes Ticket3119 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
fb7d70c1cd
commit
9cbe834dfd
@ -623,6 +623,10 @@ static int avi_read_header(AVFormatContext *s)
|
|||||||
if (cur_pos < list_end)
|
if (cur_pos < list_end)
|
||||||
size = FFMIN(size, list_end - cur_pos);
|
size = FFMIN(size, list_end - cur_pos);
|
||||||
st = s->streams[stream_index];
|
st = s->streams[stream_index];
|
||||||
|
if (st->codec->codec_type != AVMEDIA_TYPE_UNKNOWN) {
|
||||||
|
avio_skip(pb, size);
|
||||||
|
break;
|
||||||
|
}
|
||||||
switch (codec_type) {
|
switch (codec_type) {
|
||||||
case AVMEDIA_TYPE_VIDEO:
|
case AVMEDIA_TYPE_VIDEO:
|
||||||
if (amv_file_format) {
|
if (amv_file_format) {
|
||||||
|
Loading…
Reference in New Issue
Block a user