You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
avformat/iff: ignore FVER tag when not processing DSD/DST files
Fixes ticket #10030.
This commit is contained in:
@ -692,6 +692,7 @@ static int iff_read_header(AVFormatContext *s)
|
||||
/* DSD tags */
|
||||
|
||||
case MKTAG('F','V','E','R'):
|
||||
if (iff->form_tag == ID_DSD || iff->form_tag == ID_DST) {
|
||||
if (data_size < 4)
|
||||
return AVERROR_INVALIDDATA;
|
||||
version = avio_rb32(pb);
|
||||
@ -699,6 +700,7 @@ static int iff_read_header(AVFormatContext *s)
|
||||
if (!new_stream(s, &sta, &iff->audio_stream_index, AVMEDIA_TYPE_AUDIO))
|
||||
return AVERROR(ENOMEM);
|
||||
sta->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
|
||||
}
|
||||
break;
|
||||
|
||||
case MKTAG('D','I','I','N'):
|
||||
|
Reference in New Issue
Block a user