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>
Showing
Please
register
or
sign in
to comment