From 2ee8a4f8873b9f7bb8ae7ed0ba40b45f27f634d4 Mon Sep 17 00:00:00 2001 From: Marton Balint Date: Fri, 1 Jul 2016 01:12:25 +0200 Subject: [PATCH] ffmpeg: fix -stream_loop with -re Otherwise the stream failed with EAGAIN. Reviewed-by: Michael Niedermayer Signed-off-by: Marton Balint --- ffmpeg.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ffmpeg.c b/ffmpeg.c index bad311d575..3229823d0f 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -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) {