Check for input/output size match here too. I hope that I didn't forget other files.
authorAntoine Cellerier <dionoea@videolan.org>
Thu, 28 Aug 2008 16:50:11 +0000 (18:50 +0200)
committerAntoine Cellerier <dionoea@videolan.org>
Thu, 28 Aug 2008 16:50:11 +0000 (18:50 +0200)
modules/video_chroma/grey_yuv.c
modules/video_chroma/i420_ymga.c
modules/video_chroma/i422_i420.c
modules/video_chroma/yuy2_i422.c

index 494cacd..d8a805c 100644 (file)
@@ -72,6 +72,10 @@ static int Activate( vlc_object_t *p_this )
         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 )
     {
         case VLC_FOURCC('Y','8','0','0'):
index 4efc6a6..2859f92 100644 (file)
@@ -76,6 +76,10 @@ static int Activate( vlc_object_t *p_this )
         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 )
     {
         case VLC_FOURCC('Y','V','1','2'):
index a318580..ed0c029 100644 (file)
@@ -74,6 +74,10 @@ static int Activate( vlc_object_t *p_this )
         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 )
     {
         case VLC_FOURCC('I','4','2','2'):
index 131f09b..4faea42 100644 (file)
@@ -75,6 +75,10 @@ static int Activate( vlc_object_t *p_this )
         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 )
     {
         case VLC_FOURCC('I','4','2','2'):