mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
Handle av_read_frame() EAGAIN return.
Originally committed as revision 16717 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
4d6f600c58
commit
ad51c68c01
5
ffmpeg.c
5
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;
|
||||
|
Loading…
Reference in New Issue
Block a user