changeset 590:a6945dfb69ab libavformat

loop hack
author michael
date Tue, 16 Nov 2004 16:28:27 +0000
parents f847832552e5
children f0bbf14d722c
files img2.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;