Commit 7255a5e6 authored by Antoine Cellerier's avatar Antoine Cellerier

also scale I420/YV12. (untested) (btw, why don't we use the "normal" scaling...

also scale I420/YV12. (untested)  (btw, why don't we use the "normal" scaling modules for sub pictures?)
parent c0653a16
......@@ -67,6 +67,8 @@ static int OpenFilter( vlc_object_t *p_this )
if( ( p_filter->fmt_in.video.i_chroma != VLC_FOURCC('Y','U','V','P') &&
p_filter->fmt_in.video.i_chroma != VLC_FOURCC('Y','U','V','A') &&
p_filter->fmt_in.video.i_chroma != VLC_FOURCC('I','4','2','0') &&
p_filter->fmt_in.video.i_chroma != VLC_FOURCC('Y','V','1','2') &&
p_filter->fmt_in.video.i_chroma != VLC_FOURCC('R','G','B','A') ) ||
p_filter->fmt_in.video.i_chroma != p_filter->fmt_out.video.i_chroma )
{
......@@ -121,8 +123,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
return NULL;
}
if( p_filter->fmt_in.video.i_chroma == VLC_FOURCC('Y','U','V','P') ||
p_filter->fmt_in.video.i_chroma == VLC_FOURCC('Y','U','V','A') )
if( p_filter->fmt_in.video.i_chroma != VLC_FOURCC('R','G','B','A') )
{
for( i_plane = 0; i_plane < p_pic_dst->i_planes; i_plane++ )
{
......
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