comparison 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
comparison
equal deleted inserted replaced
395:80518daaab05 396:fce0a2520551
14 * 14 *
15 * You should have received a copy of the GNU General Public License 15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software 16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */ 18 */
19 #include <stdlib.h> 19 #include "avcodec.h"
20 #include <stdio.h>
21 #include "common.h"
22 #include "dsputil.h" 20 #include "dsputil.h"
23 #include "mpegvideo.h" 21 #include "mpegvideo.h"
24 #include "avcodec.h"
25 22
26 /* 23 /*
27 * You can also call this codec : MPEG4 with a twist ! 24 * You can also call this codec : MPEG4 with a twist !
28 * 25 *
29 * TODO: 26 * TODO:
135 /* build the table which associate a (x,y) motion vector to a vlc */ 132 /* build the table which associate a (x,y) motion vector to a vlc */
136 static void init_mv_table(MVTable *tab) 133 static void init_mv_table(MVTable *tab)
137 { 134 {
138 int i, x, y; 135 int i, x, y;
139 136
140 tab->table_mv_index = malloc(sizeof(UINT16) * 4096); 137 tab->table_mv_index = av_malloc(sizeof(UINT16) * 4096);
141 /* mark all entries as not used */ 138 /* mark all entries as not used */
142 for(i=0;i<4096;i++) 139 for(i=0;i<4096;i++)
143 tab->table_mv_index[i] = tab->n; 140 tab->table_mv_index[i] = tab->n;
144 141
145 for(i=0;i<tab->n;i++) { 142 for(i=0;i<tab->n;i++) {