mirror of https://github.com/mpv-player/mpv
options: make --video-rotate use range 0-360
Include 360 in the range and don't stop at 359. This makes cycling through the range in 90° steps less awkward.
This commit is contained in:
parent
8f0f73e591
commit
00230fab6a
|
@ -628,7 +628,7 @@ Video
|
||||||
|
|
||||||
This option is disabled if the ``--no-keepaspect`` option is used.
|
This option is disabled if the ``--no-keepaspect`` option is used.
|
||||||
|
|
||||||
``--video-rotate=<0-359|no>``
|
``--video-rotate=<0-360|no>``
|
||||||
Rotate the video clockwise, in degrees. Currently supports 90° steps only.
|
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
|
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,
|
rotation metadata. (The rotation value is added to the rotation metadata,
|
||||||
|
|
|
@ -424,7 +424,7 @@ const m_option_t mp_opts[] = {
|
||||||
OPT_FLOATRANGE("video-align-y", vo.align_y, 0, -1.0, 1.0),
|
OPT_FLOATRANGE("video-align-y", vo.align_y, 0, -1.0, 1.0),
|
||||||
OPT_FLAG("video-unscaled", vo.unscaled, 0),
|
OPT_FLAG("video-unscaled", vo.unscaled, 0),
|
||||||
OPT_FLAG("force-rgba-osd-rendering", force_rgba_osd, 0),
|
OPT_FLAG("force-rgba-osd-rendering", force_rgba_osd, 0),
|
||||||
OPT_CHOICE_OR_INT("video-rotate", video_rotate, 0, 0, 359,
|
OPT_CHOICE_OR_INT("video-rotate", video_rotate, 0, 0, 360,
|
||||||
({"no", -1})),
|
({"no", -1})),
|
||||||
OPT_VID_STEREO_MODE("video-stereo-mode", video_stereo_mode, 0),
|
OPT_VID_STEREO_MODE("video-stereo-mode", video_stereo_mode, 0),
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue