mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-12 12:11:45 +08:00
avformat/mov: Check extradata before access
Fixes NULL ptr dereference Fixes Ticket5778 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -4830,6 +4830,7 @@ static int mov_read_close(AVFormatContext *s)
|
||||
av_freep(&sc->rap_group);
|
||||
av_freep(&sc->display_matrix);
|
||||
|
||||
if (sc->extradata)
|
||||
for (j = 0; j < sc->stsd_count; j++)
|
||||
av_free(sc->extradata[j]);
|
||||
av_freep(&sc->extradata);
|
||||
|
Reference in New Issue
Block a user