comparison h263.c @ 396:fce0a2520551 libavcodec

removed useless header includes - use av memory functions
author glantau
date Sat, 18 May 2002 23:03:29 +0000
parents fdeec2834c79
children 718a22dc121f
comparison
equal deleted inserted replaced
395:80518daaab05 396:fce0a2520551
1551 if (level > max_level[run]) 1551 if (level > max_level[run])
1552 max_level[run] = level; 1552 max_level[run] = level;
1553 if (run > max_run[level]) 1553 if (run > max_run[level])
1554 max_run[level] = run; 1554 max_run[level] = run;
1555 } 1555 }
1556 rl->max_level[last] = malloc(MAX_RUN + 1); 1556 rl->max_level[last] = av_malloc(MAX_RUN + 1);
1557 memcpy(rl->max_level[last], max_level, MAX_RUN + 1); 1557 memcpy(rl->max_level[last], max_level, MAX_RUN + 1);
1558 rl->max_run[last] = malloc(MAX_LEVEL + 1); 1558 rl->max_run[last] = av_malloc(MAX_LEVEL + 1);
1559 memcpy(rl->max_run[last], max_run, MAX_LEVEL + 1); 1559 memcpy(rl->max_run[last], max_run, MAX_LEVEL + 1);
1560 rl->index_run[last] = malloc(MAX_RUN + 1); 1560 rl->index_run[last] = av_malloc(MAX_RUN + 1);
1561 memcpy(rl->index_run[last], index_run, MAX_RUN + 1); 1561 memcpy(rl->index_run[last], index_run, MAX_RUN + 1);
1562 } 1562 }
1563 } 1563 }
1564 1564
1565 void init_vlc_rl(RLTable *rl) 1565 void init_vlc_rl(RLTable *rl)