[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:40:07 CEST 2008


vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Thu Aug 28 18:42:40 2008 +0200| [312bf22c9034f1953319b406939696dade033e85] | committer: Antoine Cellerier 

If you don't know how to scale ... don't pretend that you do. (Needs backporting)

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

 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