[FFmpeg-cvslog] avformat/iamfdec: don't set individual streams as dependent
James Almer
git at videolan.org
Fri Dec 13 21:40:29 EET 2024
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Tue Dec 10 14:07:09 2024 -0300| [2d33f66f9ac85b3b58280e27793a2b7aa47dc054] | committer: James Almer
avformat/iamfdec: don't set individual streams as dependent
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2d33f66f9ac85b3b58280e27793a2b7aa47dc054
---
libavformat/iamfdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/iamfdec.c b/libavformat/iamfdec.c
index ce6d4aa064..ec80000e36 100644
--- a/libavformat/iamfdec.c
+++ b/libavformat/iamfdec.c
@@ -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);
More information about the ffmpeg-cvslog
mailing list