Mercurial > libavcodec.hg
diff mpegvideo.c @ 1555:27073c5532dc libavcodec
move blocks away MpegEncContext (7.4 -> 5.8k)
author | michael |
---|---|
date | Wed, 22 Oct 2003 12:01:21 +0000 |
parents | d736e24bf303 |
children | 5ebb4ae753d3 |
line wrap: on
line diff
--- a/mpegvideo.c Wed Oct 22 11:23:39 2003 +0000 +++ b/mpegvideo.c Wed Oct 22 12:01:21 2003 +0000 @@ -448,6 +448,7 @@ CHECKED_ALLOCZ(s->q_intra_matrix16, 64*32*2 * sizeof(uint16_t)) CHECKED_ALLOCZ(s->q_inter_matrix16, 64*32*2 * sizeof(uint16_t)) } + CHECKED_ALLOCZ(s->blocks, 64*6*2 * sizeof(DCTELEM)) CHECKED_ALLOCZ(s->picture, MAX_PICTURE_COUNT * sizeof(Picture)) @@ -569,6 +570,7 @@ av_freep(&s->q_inter_matrix); av_freep(&s->q_intra_matrix16); av_freep(&s->q_inter_matrix16); + av_freep(&s->blocks); for(i=0; i<MAX_PICTURE_COUNT; i++){ free_picture(s, &s->picture[i]);