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

Thomas Guilbert git at videolan.org
Fri Dec 29 23:43:47 EET 2023


ffmpeg | branch: master | Thomas Guilbert <tguilbert at chromium.org> | Wed Nov 15 20:28:49 2023 +0000| [ff451df9479810d75851f92babd0b4290da03dd6] | 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>

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

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

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 88c36f6af3..72050a96a7 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1472,6 +1472,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