avformat/matroskaenc: Fix potential leak of cached packet
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 6 Nov 2019 02:49:01 +0000 (03:49 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 24 Nov 2019 15:01:56 +0000 (16:01 +0100)
commit4470ab1e0ee1c36cca83f161567177145f412605
tree0e08f105c08839e4f17e0e2299faa9691d31fa5b
parentd65aaf8ea986bb138ca0a6e86825c5ce03b9013a
avformat/matroskaenc: Fix potential leak of cached packet

If mkv_write_trailer() is not called, the cached audio packet might
leak; so unref it in mkv_deinit().

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/matroskaenc.c