summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2009-01-23 09:47:22 +0000
committerMichael Niedermayer <michaelni@gmx.at>2009-01-23 09:47:22 +0000
commit2d4eeaadc41a0adf97d6b71677d014833df432e2 (patch)
tree47908596d59b43caaed3052bdf95145941ce5424 /ffmpeg.c
parent1cae2ef9a6730863b1d68e27fa3de13afd3a0ea6 (diff)
Workaround ffms behavior of returning EAGAIN at EOF.
Should fix regression tests & fate. Originally committed as revision 16727 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 48dafba36b..03f9109cd7 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2101,7 +2101,7 @@ static int av_encode(AVFormatContext **output_files,
/* read a frame from it and output it in the fifo */
is = input_files[file_index];
ret= av_read_frame(is, &pkt);
- if(ret == AVERROR(EAGAIN))
+ if(ret == AVERROR(EAGAIN) && strcmp(is->iformat->name, "ffm"))
continue;
if (ret < 0) {
file_table[file_index].eof_reached = 1;