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@niedermayer.cc>
(cherry picked from commit ff451df947)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
pull/390/head
Thomas Guilbert 1 year ago committed by Michael Niedermayer
parent 2eb597816a
commit 2bd36ef4c7
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64
  1. 1
      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)

Loading…
Cancel
Save