[FFmpeg-cvslog] avformat/mux: use <0 instead of != 0 for error check of init_muxer()

Michael Niedermayer git at videolan.org
Sat May 16 18:47:47 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat May 16 18:33:51 2015 +0200| [da4ef13cb20642dae4a893c9b32b7bbff60bfb42] | committer: Michael Niedermayer

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

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=da4ef13cb20642dae4a893c9b32b7bbff60bfb42
---

 libavformat/mux.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/mux.c b/libavformat/mux.c
index 945bb9d..a39c534 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) {



More information about the ffmpeg-cvslog mailing list