changeset 2152:2f6518c0e6cc libavcodec

1/0 fix
author michael
date Wed, 28 Jul 2004 01:35:29 +0000
parents 44c973bfec0f
children e0d88f21d864
files snow.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/snow.c	Wed Jul 28 00:09:03 2004 +0000
+++ b/snow.c	Wed Jul 28 01:35:29 2004 +0000
@@ -1701,6 +1701,8 @@
         b_h = h - s_y;
     }
 
+    if(b_w<=0 || b_h<=0) return;
+    
     dst += s_x + s_y*dst_stride;
     
     if(mb_type==1){