[vlc-devel] commit: If you don't know how to scale ... don't pretend that you do. ( Needs backporting) (Antoine Cellerier )

git version control git at videolan.org
Thu Aug 28 18:51:06 CEST 2008


vlc | branch: 0.9-bugfix | Antoine Cellerier <dionoea at videolan.org> | Thu Aug 28 18:42:40 2008 +0200| [31ce3c0a40e6179780c4c35a149b0ca7b0da1581] | committer: Antoine Cellerier 

If you don't know how to scale ... don't pretend that you do. (Needs backporting)
(cherry picked from commit 312bf22c9034f1953319b406939696dade033e85)

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

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

diff --git a/modules/video_chroma/yuy2_i420.c b/modules/video_chroma/yuy2_i420.c
index f10274d..2dfe3fd 100644
--- a/modules/video_chroma/yuy2_i420.c
+++ b/modules/video_chroma/yuy2_i420.c
@@ -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_out.video.i_chroma )
     {
         case VLC_FOURCC('I','4','2','0'):




More information about the vlc-devel mailing list