[FFmpeg-devel] [PATCH 4/8] avformat/mov: fix setting disposition for the first iamf stream

James Almer jamrial at gmail.com
Sun Mar 3 20:09:22 EET 2024


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

Signed-off-by: James Almer <jamrial at gmail.com>
---
 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);
-- 
2.44.0



More information about the ffmpeg-devel mailing list