OSDN Git Service

avformat/mux: call deinit if write_header fails
authorMarton Balint <cus@passwd.hu>
Sat, 11 Jun 2016 16:52:27 +0000 (18:52 +0200)
committerMarton Balint <cus@passwd.hu>
Mon, 13 Jun 2016 20:43:22 +0000 (22:43 +0200)
commit301ead131381d83e9ff0167b9094b04bde156f79
tree363b71d34bf972ff601209e0319c6a8c58dfa0a6
parent4bee44007a935adda805dfbb4494fc6502bd216a
avformat/mux: call deinit if write_header fails

Docs clearly states that av_write_trailer should only be called if
avformat_write_header was successful, therefore we have to deinit if we return
failure.

Signed-off-by: Marton Balint <cus@passwd.hu>
libavformat/mux.c