diff img.c @ 1175:8b53c0f3e7ad libavformat

add loop_input to AVFormatContext, getting rid of old hack patch by Vctor Paesa <wzrlpy at arsystel com>
author mru
date Thu, 13 Jul 2006 21:13:49 +0000
parents d18cc9a1fd02
children 185190bdc185
line wrap: on
line diff
--- a/img.c	Thu Jul 13 08:05:42 2006 +0000
+++ b/img.c	Thu Jul 13 21:13:49 2006 +0000
@@ -18,9 +18,6 @@
  */
 #include "avformat.h"
 
-/* XXX: this is a hack */
-int loop_input = 0;
-
 typedef struct {
     int width;
     int height;
@@ -200,7 +197,7 @@
 
     if (!s->is_pipe) {
         /* loop over input */
-        if (loop_input && s->img_number > s->img_last) {
+        if (s1->loop_input && s->img_number > s->img_last) {
             s->img_number = s->img_first;
         }
         if (get_frame_filename(filename, sizeof(filename),