[vlc-devel] commit: Workaround another swscale bug. (Laurent Aimar )
git version control
git at videolan.org
Mon Apr 20 22:10:44 CEST 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Mon Apr 20 22:06:57 2009 +0200| [7d784bfab724acc615a3c7b490bdccc23fad4692] | committer: Laurent Aimar
Workaround another swscale bug.
Some RGB conversion are broken if SWS_ACCURATE_RND is not set.
This commit should be reverted when swscale is fixed (or at least a
check on the version is needed).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7d784bfab724acc615a3c7b490bdccc23fad4692
---
modules/video_filter/swscale.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/modules/video_filter/swscale.c b/modules/video_filter/swscale.c
index 67a4eb9..61d0d82 100644
--- a/modules/video_filter/swscale.c
+++ b/modules/video_filter/swscale.c
@@ -301,6 +301,17 @@ static int GetParameters( ScalerConfiguration *p_cfg,
b_has_ao = true;
}
+ /* FIXME TODO removed when ffmpeg is fixed
+ * Without SWS_ACCURATE_RND the quality is really bad for some conversions */
+ switch( i_fmto )
+ {
+ case PIX_FMT_ARGB:
+ case PIX_FMT_RGBA:
+ case PIX_FMT_ABGR:
+ i_sws_flags |= SWS_ACCURATE_RND;
+ break;
+ }
+
if( p_cfg )
{
p_cfg->i_fmti = i_fmti;
More information about the vlc-devel
mailing list