ffmpeg | branch: master | Michael Niedermayer <[email protected]> | 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 <[email protected]>

> 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) {

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to