Commit da4ef13c authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/mux: use <0 instead of != 0 for error check of init_muxer()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f8598cef
...@@ -399,7 +399,7 @@ int avformat_write_header(AVFormatContext *s, AVDictionary **options) ...@@ -399,7 +399,7 @@ int avformat_write_header(AVFormatContext *s, AVDictionary **options)
{ {
int ret = 0; int ret = 0;
if (ret = init_muxer(s, options)) if ((ret = init_muxer(s, options)) < 0)
return ret; return ret;
if (s->oformat->write_header) { if (s->oformat->write_header) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment