diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2009-01-11 16:11:02 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-01-11 16:11:02 +0000 |
commit | 95af5e1c8158667066e1b39217bbf6e62cedeb4c (patch) | |
tree | 961654acffe9eca890a43a77f8fc5633cb8b646a /ffmpeg.c | |
parent | 42b7678d655dbe1f8ce0f27bdea8ec778973a81d (diff) | |
download | ffmpeg-95af5e1c8158667066e1b39217bbf6e62cedeb4c.tar.gz |
All negative returns are errors not just -1.
Originally committed as revision 16537 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |