From da4ef13cb20642dae4a893c9b32b7bbff60bfb42 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 16 May 2015 18:33:51 +0200 Subject: [PATCH] avformat/mux: use <0 instead of != 0 for error check of init_muxer() Signed-off-by: Michael Niedermayer --- libavformat/mux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {