diff options
Diffstat (limited to 'avconv.c')
-rw-r--r-- | avconv.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -2329,7 +2329,8 @@ static int seek_to_start(InputFile *ifile, AVFormatContext *is) ifile->time_base); } - ifile->loop--; + if (ifile->loop > 0) + ifile->loop--; return ret; } @@ -2375,7 +2376,7 @@ static int process_input(void) ifile->eagain = 1; return ret; } - if ((ret < 0) && (ifile->loop > 1)) { + if (ret < 0 && ifile->loop) { if ((ret = seek_to_start(ifile, is)) < 0) return ret; ret = get_input_packet(ifile, &pkt); |