ffmpeg: fix -stream_loop with -re
Otherwise the stream failed with EAGAIN. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
parent
a81b398e86
commit
2ee8a4f887
4
ffmpeg.c
4
ffmpeg.c
@ -3801,6 +3801,10 @@ static int process_input(int file_index)
|
|||||||
if ((ret = seek_to_start(ifile, is)) < 0)
|
if ((ret = seek_to_start(ifile, is)) < 0)
|
||||||
return ret;
|
return ret;
|
||||||
ret = get_input_packet(ifile, &pkt);
|
ret = get_input_packet(ifile, &pkt);
|
||||||
|
if (ret == AVERROR(EAGAIN)) {
|
||||||
|
ifile->eagain = 1;
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
if (ret != AVERROR_EOF) {
|
if (ret != AVERROR_EOF) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user