libavformat/matroskaenc.c: fix small memory leaks on error
authorNeil Birkbeck <neil.birkbeck@gmail.com>
Wed, 19 Aug 2015 08:06:56 +0000 (01:06 -0700)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 19 Aug 2015 11:17:21 +0000 (13:17 +0200)
commit3dabebc272b0ab5455610975a6d75de08b97dc62
tree581a99c7d6a6e2e5c8863279634866b921300a02
parentfa95965f5aee9b434fad78860ff7ff1368cb2bac
libavformat/matroskaenc.c: fix small memory leaks on error

Fixing small leaks that can occur when mkv_write_tracks fails in mkv_write_header
(e.g., if video track has unknown codec). Also changing mkv_write_seekhead to take
the MatroskaMuxContext to avoid having dangling pointers.

Signed-off-by: Neil Birkbeck <neil.birkbeck@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/matroskaenc.c