diff msmpeg4.c @ 396:fce0a2520551 libavcodec

removed useless header includes - use av memory functions
author glantau
date Sat, 18 May 2002 23:03:29 +0000
parents 3c5266cda02d
children 5c8b3a717929
line wrap: on
line diff
--- a/msmpeg4.c	Sat May 18 23:01:20 2002 +0000
+++ b/msmpeg4.c	Sat May 18 23:03:29 2002 +0000
@@ -16,12 +16,9 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-#include <stdlib.h>
-#include <stdio.h>
-#include "common.h"
+#include "avcodec.h"
 #include "dsputil.h"
 #include "mpegvideo.h"
-#include "avcodec.h"
 
 /*
  * You can also call this codec : MPEG4 with a twist ! 
@@ -137,7 +134,7 @@
 {
     int i, x, y;
 
-    tab->table_mv_index = malloc(sizeof(UINT16) * 4096);
+    tab->table_mv_index = av_malloc(sizeof(UINT16) * 4096);
     /* mark all entries as not used */
     for(i=0;i<4096;i++)
         tab->table_mv_index[i] = tab->n;