[FFmpeg-cvslog] ffmpeg_opt: Fix -timestamp parsing

Michael Niedermayer git at videolan.org
Sat May 16 00:16:23 CEST 2015


ffmpeg | branch: release/2.6 | Michael Niedermayer <michaelni at gmx.at> | Sat May  9 13:07:00 2015 +0200| [7e2ea1cb70d31e643e1a903b8896145c362a97ed] | committer: Michael Niedermayer

ffmpeg_opt: Fix -timestamp parsing

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 107e4da47644fe615ea821d6a19682d73789aca7)

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7e2ea1cb70d31e643e1a903b8896145c362a97ed
---

 ffmpeg_opt.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c
index 39c5f49..41c5736 100644
--- a/ffmpeg_opt.c
+++ b/ffmpeg_opt.c
@@ -2859,7 +2859,7 @@ const OptionDef options[] = {
     { "itsscale",       HAS_ARG | OPT_DOUBLE | OPT_SPEC |
                         OPT_EXPERT | OPT_INPUT,                      { .off = OFFSET(ts_scale) },
         "set the input ts scale", "scale" },
-    { "timestamp",      HAS_ARG | OPT_PERFILE,                       { .func_arg = opt_recording_timestamp },
+    { "timestamp",      HAS_ARG | OPT_PERFILE | OPT_OUTPUT,          { .func_arg = opt_recording_timestamp },
         "set the recording timestamp ('now' to set the current time)", "time" },
     { "metadata",       HAS_ARG | OPT_STRING | OPT_SPEC | OPT_OUTPUT, { .off = OFFSET(metadata) },
         "add metadata", "string=string" },



More information about the ffmpeg-cvslog mailing list