]> git.sesse.net Git - vlc/commitdiff
Fixed a stupid typo in swscale copy conditions.
authorLaurent Aimar <fenrir@videolan.org>
Wed, 1 Oct 2008 20:45:45 +0000 (22:45 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Wed, 1 Oct 2008 20:47:39 +0000 (22:47 +0200)
It closes at least #2119 (on any vertical scaled only subtitle).

modules/video_filter/swscale.c

index 7f92fe494545fd7736242a62638c0259f6f8c787..b540491de2e2a7ee372d531ad415cf0ed24c4506 100644 (file)
@@ -307,7 +307,7 @@ static int GetParameters( ScalerConfiguration *p_cfg,
         p_cfg->i_fmto = i_fmto;
         p_cfg->b_has_a = b_has_ai && b_has_ao;
         p_cfg->b_add_a = (!b_has_ai) && b_has_ao;
-        p_cfg->b_copy = i_fmti == i_fmto && p_fmti->i_width == p_fmto->i_width && p_fmti->i_width && p_fmto->i_height;
+        p_cfg->b_copy = i_fmti == i_fmto && p_fmti->i_width == p_fmto->i_width && p_fmti->i_height == p_fmto->i_height;
         p_cfg->i_sws_flags = i_sws_flags;
     }