From 7448d1958df1d53496e59b2b3250af38a89d491a Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 11 Feb 2014 17:36:25 +0100 Subject: [PATCH] video: fix --no-aspect This also affects the --aspect option and the "aspect" property. --- video/decode/dec_video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/video/decode/dec_video.c b/video/decode/dec_video.c index 433230c058..5c75194e75 100644 --- a/video/decode/dec_video.c +++ b/video/decode/dec_video.c @@ -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) {