[FFmpeg-cvslog] r16537 - trunk/ffmpeg.c

michael subversion
Sun Jan 11 17:11:02 CET 2009


Author: michael
Date: Sun Jan 11 17:11:02 2009
New Revision: 16537

Log:
All negative returns are errors not just -1.

Modified:
   trunk/ffmpeg.c

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	Sun Jan 11 11:50:00 2009	(r16536)
+++ trunk/ffmpeg.c	Sun Jan 11 17:11:02 2009	(r16537)
@@ -967,7 +967,7 @@ static void do_video_out(AVFormatContext
             ret = avcodec_encode_video(enc,
                                        bit_buffer, bit_buffer_size,
                                        &big_picture);
-            if (ret == -1) {
+            if (ret < 0) {
                 fprintf(stderr, "Video encoding failed\n");
                 av_exit(1);
             }




More information about the ffmpeg-cvslog mailing list