diff options
author | Víctor Paesa <wzrlpy@arsystel.com> | 2006-07-13 21:13:49 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2006-07-13 21:13:49 +0000 |
commit | 5894e1bbf2f4f32949633edd01fdc237eb3cca07 (patch) | |
tree | 3d35203b2720b6883837767ed128de946407e90c /libavformat/img2.c | |
parent | 2645e80f6dac1c4b2697d8ff9b09f89bae205848 (diff) | |
download | ffmpeg-streaming-5894e1bbf2f4f32949633edd01fdc237eb3cca07.zip ffmpeg-streaming-5894e1bbf2f4f32949633edd01fdc237eb3cca07.tar.gz |
add loop_input to AVFormatContext, getting rid of old hack
patch by Víctor Paesa <wzrlpy at arsystel com>
Originally committed as revision 5729 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/img2.c')
-rw-r--r-- | libavformat/img2.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libavformat/img2.c b/libavformat/img2.c index d3efc7a..ef67132 100644 --- a/libavformat/img2.c +++ b/libavformat/img2.c @@ -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 @@ static int img_read_packet(AVFormatContext *s1, AVPacket *pkt) 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), |