aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorTodd Kirby <doubleshot@pacbell.net>2005-06-18 01:52:24 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-06-18 01:52:24 +0000
commit8108551a5c4c4c9696582c73d000f94b12cd95a5 (patch)
tree2ec75876931d8d935492d183fbcac69db2fbe64d /ffmpeg.c
parentbb628dae442f85fc8814d7c60c744a409fa001ab (diff)
downloadffmpeg-8108551a5c4c4c9696582c73d000f94b12cd95a5.tar.gz
Animated GIF looping patch by (Todd Kirby // ffmpeg.php gmail com)
Originally committed as revision 4383 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 4b78ff5802..a8551323ad 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -209,6 +209,7 @@ static int frame_skip_factor= 0;
static int frame_skip_exp= 0;
static int frame_skip_cmp= FF_CMP_DCTMAX;
extern int loop_input; /* currently a hack */
+static int loop_output = AVFMT_NOOUTPUTLOOP;
static int gray_only = 0;
static int gop_size = 12;
@@ -3689,6 +3690,7 @@ static void opt_output_file(const char *filename)
oc->mux_rate= mux_rate;
oc->preload= (int)(mux_preload*AV_TIME_BASE);
oc->max_delay= (int)(mux_max_delay*AV_TIME_BASE);
+ oc->loop_output = loop_output;
/* reset some options */
file_oformat = NULL;
@@ -4177,6 +4179,7 @@ const OptionDef options[] = {
{ "bitexact", OPT_EXPERT, {(void*)opt_bitexact}, "only use bit exact algorithms (for codec testing)" },
{ "re", OPT_BOOL | OPT_EXPERT, {(void*)&rate_emu}, "read input at native frame rate", "" },
{ "loop", OPT_BOOL | OPT_EXPERT, {(void*)&loop_input}, "loop (current only works with images)" },
+ { "loop_output", HAS_ARG | OPT_INT | OPT_EXPERT, {(void*)&loop_output}, "number of times to loop output in formats that support looping (0 loops forever)", "" },
{ "v", HAS_ARG, {(void*)opt_verbose}, "control amount of logging", "verbose" },
{ "target", HAS_ARG, {(void*)opt_target}, "specify target file type (\"vcd\", \"svcd\", \"dvd\", \"dv\", \"pal-vcd\", \"ntsc-svcd\", ...)", "type" },
{ "threads", HAS_ARG | OPT_EXPERT, {(void*)opt_thread_count}, "thread count", "count" },