Commit 1e2e6855 authored by Antoine Cellerier's avatar Antoine Cellerier

Here too. (yeah, we now have video filters in modules/video_chroma and modules/video_filter)

parent 89ec4e62
......@@ -69,11 +69,16 @@ static int OpenFilter( vlc_object_t *p_this )
/* XXX Only support RV24 -> RV32 conversion */
if( p_filter->fmt_in.video.i_chroma != VLC_FOURCC('R','V','2','4') ||
p_filter->fmt_out.video.i_chroma != VLC_FOURCC('R', 'V', '3', '2') )
(p_filter->fmt_out.video.i_chroma != VLC_FOURCC('R', 'V', '3', '2') &&
p_filter->fmt_out.video.i_chroma != VLC_FOURCC('R', 'G', 'B', 'A')) )
{
return VLC_EGENERIC;
}
if( p_filter->fmt_in.video.i_width != p_filter->fmt_out.video.i_width
|| p_filter->fmt_in.video.i_height != p_filter->fmt_out.video.i_height )
return -1;
/* Allocate the memory needed to store the decoder's structure */
if( ( p_filter->p_sys = p_sys =
(filter_sys_t *)malloc(sizeof(filter_sys_t)) ) == NULL )
......
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