diff img2.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/img2.c	Thu Jul 13 08:05:42 2006 +0000
+++ b/img2.c	Thu Jul 13 21:13:49 2006 +0000
@@ -19,9 +19,6 @@
  */
 #include "avformat.h"
 
-/* XXX: this is a hack */
-extern int loop_input;
-
 typedef struct {
     int img_first;
     int img_last;
@@ -236,7 +233,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),