projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42b7678
)
All negative returns are errors not just -1.
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 11 Jan 2009 16:11:02 +0000
(16:11 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 11 Jan 2009 16:11:02 +0000
(16:11 +0000)
Originally committed as revision 16537 to svn://svn.ffmpeg.org/ffmpeg/trunk
ffmpeg.c
patch
|
blob
|
history
diff --git
a/ffmpeg.c
b/ffmpeg.c
index
aac071e
..
341afe5
100644
(file)
--- 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);
}