avcodec/mpeg2_metadata: unref output packet on failure
authorJames Almer <jamrial@gmail.com>
Tue, 20 Mar 2018 03:55:28 +0000 (00:55 -0300)
committerJames Almer <jamrial@gmail.com>
Tue, 20 Mar 2018 21:26:38 +0000 (18:26 -0300)
commit2aac5ad2f72cf9a1f024187b78f949c5613ceacd
tree07e32bfd8f2807e52dbe8432c91568d8792f1ed4
parentae36d6cdde0799099dee0397427438bfc86bc1d9
avcodec/mpeg2_metadata: unref output packet on failure

Move the check and unref call to the end to be consistent with other
bsfs.

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