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)
committerMark Thompson <sw@jkqxz.net>
Tue, 28 May 2019 23:16:41 +0000 (00:16 +0100)
commitd903c09d9a5c641223f0810d24161520e977544a
treebf6870c9a5cee0d8aba6579f7d6464c2705b67cc
parent1759a9e5b52de524fa9f3f4d115087132744176b
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>
libavcodec/cbs_mpeg2_syntax_template.c