[FFmpeg-cvslog] avformat/mov: fix setting disposition for the first iamf stream

James Almer git at videolan.org
Tue Mar 5 01:18:31 EET 2024


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sun Mar  3 13:45:40 2024 -0300| [d78c75fe49a8b2eb6704a66b1a914b96bf9ad46b] | committer: James Almer

avformat/mov: fix setting disposition for the first iamf stream

st->disposition will be overwritten with disposition later in the function.

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d78c75fe49a8b2eb6704a66b1a914b96bf9ad46b
---

 libavformat/mov.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index e07f2a1ada..7a09017020 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -946,7 +946,7 @@ static int mov_read_iacb(MOVContext *c, AVIOContext *pb, MOVAtom atom)
 
             if (!i && !j) {
                 if (audio_element->layers[0].substream_count != 1)
-                    st->disposition &= ~AV_DISPOSITION_DEFAULT;
+                    disposition &= ~AV_DISPOSITION_DEFAULT;
                 stream = st;
             } else
                 stream = avformat_new_stream(c->fc, NULL);



More information about the ffmpeg-cvslog mailing list