[FFmpeg-cvslog] avformat/asfenc: replace != 0 error check by <0

Michael Niedermayer git at videolan.org
Sat Dec 20 02:09:53 CET 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Dec 20 01:48:26 2014 +0100| [4b45aa517c30091c20b75f1fd12f3607a679b841] | committer: Michael Niedermayer

avformat/asfenc: replace != 0 error check by <0

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

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

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

diff --git a/libavformat/asfenc.c b/libavformat/asfenc.c
index fbf6158..3dc58f3 100644
--- a/libavformat/asfenc.c
+++ b/libavformat/asfenc.c
@@ -485,7 +485,7 @@ static int asf_write_header1(AVFormatContext *s, int64_t file_size,
     /* chapters using ASF markers */
     if (!asf->is_streamed && s->nb_chapters) {
         int ret;
-        if (ret = asf_write_markers(s))
+        if ((ret = asf_write_markers(s)) < 0)
             return ret;
     }
     /* stream headers */



More information about the ffmpeg-cvslog mailing list