From: michael Date: Sun, 11 Jan 2009 16:11:02 +0000 (+0000) Subject: All negative returns are errors not just -1. X-Git-Url: https://rtime.felk.cvut.cz/gitweb/frescor/ffmpeg.git/commitdiff_plain/86cd918ac88f5dc3ded9f296cad360e2d56519f4 All negative returns are errors not just -1. git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16537 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b --- diff --git a/ffmpeg.c b/ffmpeg.c index aac071e74..341afe594 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -967,7 +967,7 @@ static void do_video_out(AVFormatContext *s, 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); }