mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
All negative returns are errors not just -1.
Originally committed as revision 16537 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
42b7678d65
commit
95af5e1c81
2
ffmpeg.c
2
ffmpeg.c
@ -967,7 +967,7 @@ static void do_video_out(AVFormatContext *s,
|
|||||||
ret = avcodec_encode_video(enc,
|
ret = avcodec_encode_video(enc,
|
||||||
bit_buffer, bit_buffer_size,
|
bit_buffer, bit_buffer_size,
|
||||||
&big_picture);
|
&big_picture);
|
||||||
if (ret == -1) {
|
if (ret < 0) {
|
||||||
fprintf(stderr, "Video encoding failed\n");
|
fprintf(stderr, "Video encoding failed\n");
|
||||||
av_exit(1);
|
av_exit(1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user