Re: [FFmpeg-devel] [PATCH 1/4] avformat/mux: call deinit if write_header fails

2016-06-13 Thread Marton Balint
On Sat, 11 Jun 2016, Marton Balint wrote: 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 --- libavformat/mux.c | 9 +++-- 1 file changed, 7 insertions(+)

[FFmpeg-devel] [PATCH 1/4] avformat/mux: call deinit if write_header fails

2016-06-11 Thread Marton Balint
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 --- libavformat/mux.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libavformat/m