avformat/iamfdec: don't set individual streams as dependent

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2024-12-10 14:07:09 -03:00
parent cc9843dc33
commit 2d33f66f9a

View File

@ -109,7 +109,7 @@ static int iamf_read_header(AVFormatContext *s)
if (!i && !j && audio_element->layers[0].substream_count == 1)
st->disposition |= AV_DISPOSITION_DEFAULT;
else
else if (audio_element->nb_layers > 1 || audio_element->layers[0].substream_count > 1)
st->disposition |= AV_DISPOSITION_DEPENDENT;
st->id = substream->audio_substream_id;
avpriv_set_pts_info(st, 64, 1, st->codecpar->sample_rate);