Commit 89ec4e62 authored by dionoea's avatar dionoea
Browse files

Check for input/output size match here too. I hope that I didn't forget other files.

parent 312bf22c
...@@ -72,6 +72,10 @@ static int Activate( vlc_object_t *p_this ) ...@@ -72,6 +72,10 @@ static int Activate( vlc_object_t *p_this )
return -1; return -1;
} }
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;
switch( p_filter->fmt_in.video.i_chroma ) switch( p_filter->fmt_in.video.i_chroma )
{ {
case VLC_FOURCC('Y','8','0','0'): case VLC_FOURCC('Y','8','0','0'):
......
...@@ -76,6 +76,10 @@ static int Activate( vlc_object_t *p_this ) ...@@ -76,6 +76,10 @@ static int Activate( vlc_object_t *p_this )
return -1; return -1;
} }
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;
switch( p_filter->fmt_in.video.i_chroma ) switch( p_filter->fmt_in.video.i_chroma )
{ {
case VLC_FOURCC('Y','V','1','2'): case VLC_FOURCC('Y','V','1','2'):
......
...@@ -74,6 +74,10 @@ static int Activate( vlc_object_t *p_this ) ...@@ -74,6 +74,10 @@ static int Activate( vlc_object_t *p_this )
return -1; return -1;
} }
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;
switch( p_filter->fmt_in.video.i_chroma ) switch( p_filter->fmt_in.video.i_chroma )
{ {
case VLC_FOURCC('I','4','2','2'): case VLC_FOURCC('I','4','2','2'):
......
...@@ -75,6 +75,10 @@ static int Activate( vlc_object_t *p_this ) ...@@ -75,6 +75,10 @@ static int Activate( vlc_object_t *p_this )
return -1; return -1;
} }
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;
switch( p_filter->fmt_out.video.i_chroma ) switch( p_filter->fmt_out.video.i_chroma )
{ {
case VLC_FOURCC('I','4','2','2'): case VLC_FOURCC('I','4','2','2'):
......
Supports Markdown
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