avcodec/extract_extradata_bsf: Don't unref uninitialized buffers
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sat, 30 Nov 2019 06:38:10 +0000 (07:38 +0100)
committerJames Almer <jamrial@gmail.com>
Sat, 7 Dec 2019 00:33:54 +0000 (21:33 -0300)
commit2722fc2bcfae03feea131737f7da451358a05a7b
treedfaa9840e47162fb33e7b481f72446a9f1c06bb7
parent40123639fe7edc2cbd42f2b1ffb9d072131be5ad
avcodec/extract_extradata_bsf: Don't unref uninitialized buffers

This happens if allocating extradata fails and s->remove is unset.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit 76e0ecec0bfade85796ccfeb9ffdfd55c666612e)
libavcodec/extract_extradata_bsf.c