diff h263.c @ 2422:18b8b2dcc037 libavcodec

various security fixes and precautionary checks
author michael
date Wed, 12 Jan 2005 00:16:25 +0000
parents 18d77621fbc7
children 8a30df830ad6
line wrap: on
line diff
--- a/h263.c	Tue Jan 11 08:16:04 2005 +0000
+++ b/h263.c	Wed Jan 12 00:16:25 2005 +0000
@@ -6115,7 +6115,7 @@
         width = height = 0;
         break;
     }
-    if ((width == 0) || (height == 0))
+    if(avcodec_check_dimensions(s->avctx, width, height))
         return -1;
     s->width = width;
     s->height = height;