[vlc-devel] commit: video_chroma: i420->yuy2 filter cannot scale. (Derk-Jan Hartman )

git version control git at videolan.org
Tue Sep 23 22:34:36 CEST 2008


vlc | branch: 0.9-bugfix | Derk-Jan Hartman <hartman at videolan.org> | Tue Sep 23 22:34:26 2008 +0200| [3d509978bc08b4b99f2e4871b014a37492845be5] | committer: Derk-Jan Hartman 

video_chroma: i420->yuy2 filter cannot scale.
(cherry picked from commit 311bfd11c611b0cd4186a640a224e9e5f096f892)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3d509978bc08b4b99f2e4871b014a37492845be5
---

 modules/video_chroma/i420_yuy2.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/modules/video_chroma/i420_yuy2.c b/modules/video_chroma/i420_yuy2.c
index d9ffebe..ed5aa33 100644
--- a/modules/video_chroma/i420_yuy2.c
+++ b/modules/video_chroma/i420_yuy2.c
@@ -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'):




More information about the vlc-devel mailing list