summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorVíctor Paesa <wzrlpy@arsystel.com>2006-07-13 21:13:49 +0000
committerMåns Rullgård <mans@mansr.com>2006-07-13 21:13:49 +0000
commit5894e1bbf2f4f32949633edd01fdc237eb3cca07 (patch)
tree3d35203b2720b6883837767ed128de946407e90c /ffmpeg.c
parent2645e80f6dac1c4b2697d8ff9b09f89bae205848 (diff)
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 'ffmpeg.c')
-rw-r--r--ffmpeg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 473185fef2..cf866b3a24 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -159,7 +159,7 @@ static int me_penalty_compensation= 256;
static int frame_skip_threshold= 0;
static int frame_skip_factor= 0;
static int frame_skip_exp= 0;
-extern int loop_input; /* currently a hack */
+static int loop_input = 0;
static int loop_output = AVFMT_NOOUTPUTLOOP;
static int genpts = 0;
static int qp_hist = 0;
@@ -2843,6 +2843,8 @@ static void opt_input_file(const char *filename)
exit(1);
}
+ ic->loop_input = loop_input;
+
if(genpts)
ic->flags|= AVFMT_FLAG_GENPTS;