avcodec/h265_metadata: fix memory leak in case of output packet creation failure
authorJames Almer <jamrial@gmail.com>
Tue, 20 Mar 2018 03:55:27 +0000 (00:55 -0300)
committerJames Almer <jamrial@gmail.com>
Tue, 20 Mar 2018 21:20:29 +0000 (18:20 -0300)
commitae36d6cdde0799099dee0397427438bfc86bc1d9
treec5800ae70adc28a692c6448e32ce586cd5bf0cea
parent039be6a23f4399a6a020a03be68e4c7cd5aaed2b
avcodec/h265_metadata: fix memory leak in case of output packet creation failure

Some function calls may fail after the output packet is initialized.

Reviewed-by: jkqxz
Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/h265_metadata_bsf.c