]> git.sesse.net Git - ffmpeg/commit
avformat/dashenc: Fix leak of AVFormatContext on error
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 7 Jan 2020 13:55:46 +0000 (14:55 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 8 Jan 2020 00:32:26 +0000 (01:32 +0100)
commit8aeab0dbc159d65a20bb4cc89c2524b482fd867a
tree95eedaafdfc60e9ec328b04558d58e139664727d
parentad18f69bcba05f825b7a27e779873ae830273e84
avformat/dashenc: Fix leak of AVFormatContext on error

The Dash muxer uses submuxers and when one such submuxer has been allocated,
it is initially only stored in a temporary variable. Therefore it leaks
if an error happens between the allocation and storing it permanently.
This commit changes this.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Reviewed-by: "Jeyapal, Karthick" <kjeyapal@akamai.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/dashenc.c