]> git.sesse.net Git - ffmpeg/commit
avformat/dvenc: Replace write_trailer by deinit function
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 26 Jan 2020 06:40:50 +0000 (07:40 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 26 Jan 2020 16:24:41 +0000 (17:24 +0100)
commitf1dbfcdf895e03e3d0d8b195f3525b57426b0377
tree1c18631fecea7536aad1b5e4470554d3a5664e91
parent0b1ff3265e9bdad3b4b6b97ced2f126cb3599568
avformat/dvenc: Replace write_trailer by deinit function

The old write_trailer only freed memory, so it is better to make a
dedicated deinit function out of it. Given that this function will also
be called when writing the header fails, one can also remove code that
frees already allocated fifos when allocating another one fails.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/dvenc.c