Commit 7d784bfa authored by Laurent Aimar's avatar 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).
parent f9f2d307
...@@ -301,6 +301,17 @@ static int GetParameters( ScalerConfiguration *p_cfg, ...@@ -301,6 +301,17 @@ static int GetParameters( ScalerConfiguration *p_cfg,
b_has_ao = true; 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 ) if( p_cfg )
{ {
p_cfg->i_fmti = i_fmti; p_cfg->i_fmti = i_fmti;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment