aboutsummaryrefslogtreecommitdiffstats
path: root/compat
diff options
context:
space:
mode:
authorJan Sebechlebsky <sebechlebskyjan@gmail.com>2016-04-20 20:21:03 +0300
committerMarton Balint <cus@passwd.hu>2016-04-22 19:49:50 +0200
commitf9d7e9feec2a0fd7f7930d01876a70a9b8a4a3b9 (patch)
treed3468a98fd30e8a000e214cf99255713e25f0130 /compat
parent27adf9f9cdbc6f1dc0a1292dc97490eec6f2f068 (diff)
downloadffmpeg-f9d7e9feec2a0fd7f7930d01876a70a9b8a4a3b9.tar.gz
avformat/tee: Fix leaks in tee muxer when open_slave fails
In open_slave failure can happen before bsfs array is initialized, close_slave must check that bsfs is not NULL before accessing tee_slave->bsfs[i] element. Slave muxer expects write_trailer to be called if it's write_header suceeded (so resources allocated in write_header are freed). Therefore if failure happens after successfull write_header call, we must ensure that write_trailer of that particular slave is called. Some cleanups are made by Marton Balint. Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com> Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'compat')
0 files changed, 0 insertions, 0 deletions