diff mbox

[FFmpeg-devel] fftools/ffmpeg: check sseof value and clash with ss

Message ID 676dbb24-ed45-dd3a-6c4e-8f1d13fb1158@gmail.com
State Superseded
Headers show

Commit Message

Gyan June 22, 2018, 4:36 p.m. UTC
From 91d98675cc85bd78e46971f9e5d3708245345654 Mon Sep 17 00:00:00 2001
From: Gyan Doshi <ffmpeg@gyani.pro>
Date: Thu, 7 Jun 2018 23:15:35 +0530
Subject: [PATCH] ffmpeg: sseof is marked as an input-only option

---
 doc/ffmpeg.texi      | 2 +-
 fftools/ffmpeg_opt.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/doc/ffmpeg.texi b/doc/ffmpeg.texi
index 79da1ae14d..3717f22d42 100644
--- a/doc/ffmpeg.texi
+++ b/doc/ffmpeg.texi
@@ -508,7 +508,7 @@  input until the timestamps reach @var{position}.
 @var{position} must be a time duration specification,
 see @ref{time duration syntax,,the Time duration section in the ffmpeg-utils(1) manual,ffmpeg-utils}.
 
-@item -sseof @var{position} (@emph{input/output})
+@item -sseof @var{position} (@emph{input})
 
 Like the @code{-ss} option but relative to the "end of file". That is negative
 values are earlier in the file, 0 is at EOF.
diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c
index 36bce4465a..a2ecddae71 100644
--- a/fftools/ffmpeg_opt.c
+++ b/fftools/ffmpeg_opt.c
@@ -3340,7 +3340,7 @@  const OptionDef options[] = {
                         OPT_INPUT | OPT_OUTPUT,                      { .off = OFFSET(start_time) },
         "set the start time offset", "time_off" },
     { "sseof",          HAS_ARG | OPT_TIME | OPT_OFFSET |
-                        OPT_INPUT | OPT_OUTPUT,                      { .off = OFFSET(start_time_eof) },
+                        OPT_INPUT,                                   { .off = OFFSET(start_time_eof) },
         "set the start time offset relative to EOF", "time_off" },
     { "seek_timestamp", HAS_ARG | OPT_INT | OPT_OFFSET |
                         OPT_INPUT,                                   { .off = OFFSET(seek_timestamp) },