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

2017-11-22 Thread Michael Niedermayer
On Tue, Nov 21, 2017 at 03:42:40PM -0800, Dale Curtis wrote: > 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

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

2017-11-21 Thread Dale Curtis
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 From