Commit 9ba05275 authored by michael's avatar michael

Handle av_read_frame() EAGAIN return.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16717 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 918f7b51
...@@ -2100,7 +2100,10 @@ static int av_encode(AVFormatContext **output_files, ...@@ -2100,7 +2100,10 @@ static int av_encode(AVFormatContext **output_files,
/* read a frame from it and output it in the fifo */ /* read a frame from it and output it in the fifo */
is = input_files[file_index]; 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; file_table[file_index].eof_reached = 1;
if (opt_shortest) if (opt_shortest)
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment