summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-11-16 16:28:27 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-11-16 16:28:27 +0000
commitb339fb00ba773857b364655d266222e66d196daf (patch)
tree1734005f0ebf0220eac26d593f2e9813621f48cd
parent7f8038ce8848ea6be9150fdf9d6d99e81a8f11f0 (diff)
loop hack
Originally committed as revision 3687 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/img2.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libavformat/img2.c b/libavformat/img2.c
index 072a2f7f56..158bf485a1 100644
--- a/libavformat/img2.c
+++ b/libavformat/img2.c
@@ -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 @@ 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 (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;