video_chroma: i420->yuy2 filter cannot scale.
authorDerk-Jan Hartman <hartman@videolan.org>
Tue, 23 Sep 2008 20:34:26 +0000 (22:34 +0200)
committerDerk-Jan Hartman <hartman@videolan.org>
Tue, 23 Sep 2008 20:34:26 +0000 (22:34 +0200)
modules/video_chroma/i420_yuy2.c

index d9ffebe..ed5aa33 100644 (file)
@@ -120,6 +120,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'):