This reverts commit 18257375e4bbfdb755f5dac5e82cc0da67de12f9.
Unified · Split
| @@ -1,2 +1 @@ | ||
| 1 | 1 | change the underlying type of the `aspect`, `par`, and `sar` sub-properties to double from float |
| 2 | −deprecate setting `--video-aspect-override` to `-1` in favor of the newly added `original` choice | |
| @@ -1585,7 +1585,7 @@ Video · 1584 unmodified lines | ||
| 1585 | 1585 | the window, while ``--video-zoom`` can zoom in or out arbitrary amounts, and |
| 1586 | 1586 | also works with ``--video-unscaled``. |
| 1587 | 1587 | |
| 1588 | −``--video-aspect-override=<ratio|no|original>`` | |
| 1588 | +``--video-aspect-override=<ratio|no>`` | |
| 1589 | 1589 | Override video aspect ratio, in case aspect information is incorrect or |
| 1590 | 1590 | missing in the file being played. |
| 1591 | 1591 | |
| @@ -1593,8 +1593,7 @@ Video · 1 unmodified line | ||
| 1593 | 1593 | |
| 1594 | 1594 | :0: disable aspect ratio handling, pretend the video has square pixels |
| 1595 | 1595 | :no: same as ``0`` |
| 1596 | − :original: use the video stream or container aspect (default) | |
| 1597 | − :-1: same as ``1`` (deprecated) | |
| 1596 | + :-1: use the video stream or container aspect (default) | |
| 1598 | 1597 | |
| 1599 | 1598 | But note that handling of these special values might change in the future. |
| 1600 | 1599 | |
| @@ -1119,20 +1119,12 @@ static int parse_double_aspect(struct mp_log *log, const m_option_t *opt, · 1118 unmodified lines | ||
| 1119 | 1119 | |
| 1120 | 1120 | // Potentially allow -1 but forbid all other negative values. |
| 1121 | 1121 | if (opt->defval && *(double *)opt->defval == -1) { |
| 1122 | − if (bstr_equals0(param, "original")) { | |
| 1123 | − if (dst) | |
| 1124 | − VAL(dst) = -1.0; | |
| 1125 | − return 1; | |
| 1126 | − } | |
| 1127 | − | |
| 1128 | 1122 | struct bstr rest; |
| 1129 | 1123 | double val = bstrtod(param, &rest); |
| 1130 | 1124 | if (bstr_eatstart0(&rest, ":") || bstr_eatstart0(&rest, "/")) |
| 1131 | 1125 | val /= bstrtod(rest, &rest); |
| 1132 | 1126 | if (val == -1 && dst) { |
| 1133 | 1127 | VAL(dst) = -1.0; |
| 1134 | − mp_warn(log, "Setting '%.*s' to '%.*s' is deprecated. " | |
| 1135 | − "Set 'original' instead.\n", BSTR_P(param), BSTR_P(name)); | |
| 1136 | 1128 | return 1; |
| 1137 | 1129 | } |
| 1138 | 1130 | } |