avcodec/cbs_mpeg2: fix leak of extra_information_slice buffer in cbs_mpeg2_read_slice...
authorJames Almer <jamrial@gmail.com>
Wed, 22 May 2019 01:04:38 +0000 (03:04 +0200)
committerJames Almer <jamrial@gmail.com>
Sun, 21 Jul 2019 04:04:42 +0000 (01:04 -0300)
commitae5c80b9cae8716085eaacd887c28378ae99233b
tree30773edac8a048c8968424752211dadec14ebc8b
parentb3b5941ec7b4c1dbb059b0cd85db3c659d5c8039
avcodec/cbs_mpeg2: fix leak of extra_information_slice buffer in cbs_mpeg2_read_slice_header()

cbs_mpeg2_free_slice() calls av_buffer_unref() on extra_information_ref,
meaning allocating with av_malloc() was not the intention.

Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit d903c09d9a5c641223f0810d24161520e977544a)
libavcodec/cbs_mpeg2_syntax_template.c