diff options
author | Marton Balint <cus@passwd.hu> | 2016-07-01 01:12:25 +0200 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2016-08-28 18:22:24 +0200 |
commit | 2ee8a4f8873b9f7bb8ae7ed0ba40b45f27f634d4 (patch) | |
tree | 665ade796e41fd378ba2f38bd2471fb91703348d /ffmpeg.c | |
parent | a81b398e869ed2f7f972f797f8992ad32bfb8ba1 (diff) | |
download | ffmpeg-2ee8a4f8873b9f7bb8ae7ed0ba40b45f27f634d4.tar.gz |
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>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) { |