projects
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d6f600
)
Handle av_read_frame() EAGAIN return.
author
Michael Niedermayer
<michaelni@gmx.at>
Thu, 22 Jan 2009 12:04:01 +0000
(12:04 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Thu, 22 Jan 2009 12:04:01 +0000
(12:04 +0000)
Originally committed as revision 16717 to svn://svn.ffmpeg.org/ffmpeg/trunk
ffmpeg.c
patch
|
blob
|
blame
|
history
diff --git
a/ffmpeg.c
b/ffmpeg.c
index
ee6b017
..
48dafba
100644
(file)
--- a/
ffmpeg.c
+++ b/
ffmpeg.c
@@
-2100,7
+2100,10
@@
static int av_encode(AVFormatContext **output_files,
/* read a frame from it and output it in the fifo */
is = input_files[file_index];
- if (av_read_frame(is, &pkt) < 0) {
+ ret= av_read_frame(is, &pkt);
+ if(ret == AVERROR(EAGAIN))
+ continue;
+ if (ret < 0) {
file_table[file_index].eof_reached = 1;
if (opt_shortest)
break;