Commit 2ee8a4f8 authored by Marton Balint's avatar Marton Balint

ffmpeg: fix -stream_loop with -re

Otherwise the stream failed with EAGAIN.
Reviewed-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
parent a81b398e
......@@ -3801,6 +3801,10 @@ static int process_input(int file_index)
if ((ret = seek_to_start(ifile, is)) < 0)
return ret;
ret = get_input_packet(ifile, &pkt);
if (ret == AVERROR(EAGAIN)) {
ifile->eagain = 1;
return ret;
}
}
if (ret < 0) {
if (ret != AVERROR_EOF) {
......
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