mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-28 05:50:43 +00:00
avconv: when using -loop option bail out if seek to start fails
Fixes an infinite loop when a demuxer fails to seek to the start of the input. Signed-off-by: Peter Große <pegro@friiks.de> Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
parent
004ea63714
commit
a58873b111
@ -2615,9 +2615,11 @@ static int process_input(void)
|
||||
return ret;
|
||||
}
|
||||
if (ret < 0 && ifile->loop) {
|
||||
if ((ret = seek_to_start(ifile, is)) < 0)
|
||||
return ret;
|
||||
ret = get_input_packet(ifile, &pkt);
|
||||
ret = seek_to_start(ifile, is);
|
||||
if(ret < 0)
|
||||
av_log(NULL, AV_LOG_WARNING, "Seek to start failed.\n");
|
||||
else
|
||||
ret = get_input_packet(ifile, &pkt);
|
||||
}
|
||||
if (ret < 0) {
|
||||
if (ret != AVERROR_EOF) {
|
||||
|
Loading…
Reference in New Issue
Block a user