OSDN Git Service

ffmpeg: add OPT_OUTPUT to -to option.
authorNicolas George <nicolas.george@normalesup.org>
Thu, 14 Mar 2013 18:18:51 +0000 (19:18 +0100)
committerNicolas George <nicolas.george@normalesup.org>
Thu, 14 Mar 2013 18:32:22 +0000 (19:32 +0100)
Fix trac ticket #2355.

ffmpeg_opt.c

index 6b3ef3b..951a32a 100644 (file)
@@ -2519,7 +2519,7 @@ const OptionDef options[] = {
     { "t",              HAS_ARG | OPT_TIME | OPT_OFFSET | OPT_INPUT | OPT_OUTPUT, { .off = OFFSET(recording_time) },
         "record or transcode \"duration\" seconds of audio/video",
         "duration" },
-    { "to",             HAS_ARG | OPT_TIME | OPT_OFFSET,             { .off = OFFSET(stop_time) },
+    { "to",             HAS_ARG | OPT_TIME | OPT_OFFSET | OPT_OUTPUT,  { .off = OFFSET(stop_time) },
         "record or transcode stop time", "time_stop" },
     { "fs",             HAS_ARG | OPT_INT64 | OPT_OFFSET | OPT_OUTPUT, { .off = OFFSET(limit_filesize) },
         "set the limit file size in bytes", "limit_size" },