video: fix --no-aspect

This also affects the --aspect option and the "aspect" property.
This commit is contained in:
wm4 2014-02-11 17:36:25 +01:00
parent 00bb8083ed
commit 7448d1958d
1 changed files with 2 additions and 2 deletions

View File

@ -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) {