mirror of https://github.com/mpv-player/mpv
video: fix --no-aspect
This also affects the --aspect option and the "aspect" property.
This commit is contained in:
parent
00bb8083ed
commit
7448d1958d
|
@ -399,10 +399,10 @@ int video_reconfig_filters(struct dec_video *d_video,
|
|||
}
|
||||
|
||||
float force_aspect = opts->movie_aspect;
|
||||
if (force_aspect > -1.0 && d_video->stream_aspect != 0.0)
|
||||
if (force_aspect > 0.0 && d_video->stream_aspect != 0.0)
|
||||
force_aspect = d_video->stream_aspect;
|
||||
|
||||
if (force_aspect > 0)
|
||||
if (force_aspect >= 0.0)
|
||||
vf_set_dar(&p.d_w, &p.d_h, p.w, p.h, force_aspect);
|
||||
|
||||
if (abs(p.d_w - p.w) >= 4 || abs(p.d_h - p.h) >= 4) {
|
||||
|
|
Loading…
Reference in New Issue