[FFmpeg-cvslog] avformat/mov: Fix MSAN issue with stsd_id

Thomas Guilbert git at videolan.org
Sun Apr 14 19:34:51 EEST 2024


ffmpeg | branch: release/6.0 | Thomas Guilbert <tguilbert at chromium.org> | Wed Nov 15 20:28:49 2023 +0000| [9258cc72cb8ed5a20285eb39a11547fb50b5432b] | committer: Michael Niedermayer

avformat/mov: Fix MSAN issue with stsd_id

Fixes: use of uninitialized value
Fixes: bbb-320x240-2video-2audio.mp4

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit ff451df9479810d75851f92babd0b4290da03dd6)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

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

diff --git a/libavformat/mov.c b/libavformat/mov.c
index ab7b866e3a..e2d89e939b 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1381,6 +1381,7 @@ static int update_frag_index(MOVContext *c, int64_t offset)
         frag_stream_info[i].index_base = -1;
         frag_stream_info[i].index_entry = -1;
         frag_stream_info[i].encryption_index = NULL;
+        frag_stream_info[i].stsd_id = -1;
     }
 
     if (index < c->frag_index.nb_items)



More information about the ffmpeg-cvslog mailing list