mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-23 04:24:35 +02:00
avformat/mov: Fix extradata memleak
Fixes: crbug 822705 Reported-by: Matt Wolenetz <wolenetz@google.com> Reviewed-by: Matt Wolenetz <wolenetz@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
a06175d739
commit
0a8133119c
@ -2592,6 +2592,12 @@ static int mov_read_stsd(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
||||
|
||||
return mov_finalize_stsd_codec(c, pb, st, sc);
|
||||
fail:
|
||||
if (sc->extradata) {
|
||||
int j;
|
||||
for (j = 0; j < sc->stsd_count; j++)
|
||||
av_freep(&sc->extradata[j]);
|
||||
}
|
||||
|
||||
av_freep(&sc->extradata);
|
||||
av_freep(&sc->extradata_size);
|
||||
return ret;
|
||||
|
Loading…
x
Reference in New Issue
Block a user