avformat/mov: Increment stsd_count while processing stsd data; avoids leaks.
authorDale Curtis <dalecurtis@chromium.org>
Tue, 21 Nov 2017 23:40:22 +0000 (15:40 -0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 22 Nov 2017 12:06:50 +0000 (13:06 +0100)
commit6db511a7838830f856b4664958add937a4a0d49b
tree694fc1f14840d507e957ef0d5247516b170b47ed
parent3d5822d9cf07d08bce82903e4715658f46b01b5c
avformat/mov: Increment stsd_count while processing stsd data; avoids leaks.

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@chromium.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/mov.c