diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-05-16 18:33:51 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-05-16 18:37:21 +0200 |
commit | da4ef13cb20642dae4a893c9b32b7bbff60bfb42 (patch) | |
tree | 6fcb762ef57e5e63b71fd6ad41ae70a2df07e56d | |
parent | f8598cefe921b4d19690e03558c5d1aedce84740 (diff) | |
download | ffmpeg-da4ef13cb20642dae4a893c9b32b7bbff60bfb42.tar.gz |
avformat/mux: use <0 instead of != 0 for error check of init_muxer()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/mux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mux.c b/libavformat/mux.c index 945bb9d91d..a39c5347a3 100644 --- a/libavformat/mux.c +++ b/libavformat/mux.c @@ -399,7 +399,7 @@ int avformat_write_header(AVFormatContext *s, AVDictionary **options) { int ret = 0; - if (ret = init_muxer(s, options)) + if ((ret = init_muxer(s, options)) < 0) return ret; if (s->oformat->write_header) { |