]> git.sesse.net Git - ffmpeg/commit
avformat/hdsenc: Add explicit deinit function
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 23 Oct 2019 11:46:46 +0000 (13:46 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 30 Apr 2020 06:24:09 +0000 (08:24 +0200)
commit09bac9009ea5fd1b458fe1567bd95a9948c44508
tree83ae18cda15da82324476d4b55e51d74894fec2a
parent7afd34050c1190e59e572a7882916a7dd4670d55
avformat/hdsenc: Add explicit deinit function

hdsenc already had an explicit function to free all allocations in case
of an error, but it was not marked as deinit function, so that it was
not called automatically when the AVFormatContext for muxing gets freed.

Using an explicit deinit function also makes the code cleaner by
allowing to return immediately without "goto fail".

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavformat/hdsenc.c