[vlc-devel] commit: Fixed a stupid typo in swscale copy conditions. (Laurent Aimar )

git version control git at videolan.org
Wed Oct 1 22:49:35 CEST 2008


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Wed Oct  1 22:45:45 2008 +0200| [a504a0459599ff2bf03c7b86f51772cfc40fa6f2] | committer: Laurent Aimar 

Fixed a stupid typo in swscale copy conditions.

It closes at least #2119 (on any vertical scaled only subtitle).

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a504a0459599ff2bf03c7b86f51772cfc40fa6f2
---

 modules/video_filter/swscale.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/video_filter/swscale.c b/modules/video_filter/swscale.c
index 7f92fe4..b540491 100644
--- a/modules/video_filter/swscale.c
+++ b/modules/video_filter/swscale.c
@@ -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;
     }
 




More information about the vlc-devel mailing list