# HG changeset patch # User michael # Date 1100622507 0 # Node ID a6945dfb69ab281e2c19ed6a365d21ea90fd9c30 # Parent f847832552e5831f70566707a37d4124b117e4e0 loop hack diff -r f847832552e5 -r a6945dfb69ab img2.c --- a/img2.c Sun Nov 14 22:30:44 2004 +0000 +++ b/img2.c Tue Nov 16 16:28:27 2004 +0000 @@ -19,6 +19,9 @@ */ #include "avformat.h" +/* XXX: this is a hack */ +extern int loop_input; + typedef struct { int img_first; int img_last; @@ -216,9 +219,9 @@ if (!s->is_pipe) { /* loop over input */ -/* if (loop_input && s->img_number > s->img_last) { + if (loop_input && s->img_number > s->img_last) { s->img_number = s->img_first; - }*/ + } if (get_frame_filename(filename, sizeof(filename), s->path, s->img_number)<0 && s->img_number > 1) return AVERROR_IO;