[FFmpeg-devel] [mov] Increment stsd_count while processing stsd data; avoids leaks.

Dale Curtis dalecurtis at chromium.org
Wed Nov 22 01:42:40 EET 2017


In the event of ff_mov_read_stsd_entries() failure, sc->stsd_count
is not updated, even if the function allocates extradata memory.
Instead update the sc->stsd_count as entries are parsed so that
mov_read_close() can do the right thing.

Signed-off-by: Dale Curtis <dalecurtis at chromium.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_stsd_leak_v1.patch
Type: text/x-patch
Size: 1876 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20171121/60043294/attachment.bin>


More information about the ffmpeg-devel mailing list