diff options
author | wm4 <wm4@nowhere> | 2016-01-02 14:31:46 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-01-02 14:31:46 +0100 |
commit | d5f29a3c363582336755f9a46d41b89ddf174ed4 (patch) | |
tree | eb8237785b3486ca62f6ff1499139914b47e7874 | |
parent | de0523ba7b4f76a1c51cc3924b3fcace51fc8e16 (diff) | |
download | mpv-d5f29a3c363582336755f9a46d41b89ddf174ed4.tar.bz2 mpv-d5f29a3c363582336755f9a46d41b89ddf174ed4.tar.xz |
options: exclude 360 from --video-rotate range
It's indeed completely useless. Pointed out in #2647.
-rw-r--r-- | DOCS/man/options.rst | 2 | ||||
-rw-r--r-- | options/options.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index 76ae596519..fa29562e36 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -697,7 +697,7 @@ Video This option is disabled if the ``--no-keepaspect`` option is used. -``--video-rotate=<0-360|no>`` +``--video-rotate=<0-359|no>`` Rotate the video clockwise, in degrees. Currently supports 90° steps only. If ``no`` is given, the video is never rotated, even if the file has rotation metadata. (The rotation value is added to the rotation metadata, diff --git a/options/options.c b/options/options.c index b001712349..13d25fcb12 100644 --- a/options/options.c +++ b/options/options.c @@ -438,7 +438,7 @@ const m_option_t mp_opts[] = { OPT_FLOATRANGE("video-align-y", vo.align_y, 0, -1.0, 1.0), OPT_FLAG("video-unscaled", vo.unscaled, 0), OPT_FLAG("force-rgba-osd-rendering", force_rgba_osd, 0), - OPT_CHOICE_OR_INT("video-rotate", video_rotate, 0, 0, 360, + OPT_CHOICE_OR_INT("video-rotate", video_rotate, 0, 0, 359, ({"no", -1})), OPT_CHOICE_C("video-stereo-mode", video_stereo_mode, 0, mp_stereo3d_names), |