[FFmpeg-cvslog] ffmpeg: fix -stream_loop with -re
Marton Balint
git at videolan.org
Sun Aug 28 19:31:36 EEST 2016
ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Fri Jul 1 01:12:25 2016 +0200| [2ee8a4f8873b9f7bb8ae7ed0ba40b45f27f634d4] | committer: Marton Balint
ffmpeg: fix -stream_loop with -re
Otherwise the stream failed with EAGAIN.
Reviewed-by: Michael Niedermayer <michael at niedermayer.cc>
Signed-off-by: Marton Balint <cus at passwd.hu>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2ee8a4f8873b9f7bb8ae7ed0ba40b45f27f634d4
---
ffmpeg.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/ffmpeg.c b/ffmpeg.c
index bad311d..3229823 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) {
More information about the ffmpeg-cvslog
mailing list