Commit 7a57ea74 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

swscale: don't set a default filter

This should save some CPU cycles when we do chroma conversions and no scaling.
As suggested by Laurent Aimar
(cherry picked from commit 63fe0bf6)
parent aecdd21b
...@@ -177,10 +177,7 @@ static int OpenScaler( vlc_object_t *p_this ) ...@@ -177,10 +177,7 @@ static int OpenScaler( vlc_object_t *p_this )
default: p_sys->i_sws_flags = SWS_BICUBIC; i_sws_mode = 2; break; default: p_sys->i_sws_flags = SWS_BICUBIC; i_sws_mode = 2; break;
} }
p_sys->p_src_filter = p_sys->p_src_filter = NULL;
sws_getDefaultFilter( sws_lum_gblur, sws_chr_gblur,
sws_lum_sharpen, sws_chr_sharpen,
sws_chr_hshift, sws_chr_vshift, 0 );
p_sys->p_dst_filter = NULL; p_sys->p_dst_filter = NULL;
/* Misc init */ /* Misc init */
......
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