Mercurial > libavcodec.hg
diff mpegvideo.c @ 1556:5ebb4ae753d3 libavcodec
112 bytes smaller MpegEncContext
author | michael |
---|---|
date | Wed, 22 Oct 2003 15:36:46 +0000 |
parents | 27073c5532dc |
children | 5d53c03186a1 |
line wrap: on
line diff
--- a/mpegvideo.c Wed Oct 22 12:01:21 2003 +0000 +++ b/mpegvideo.c Wed Oct 22 15:36:46 2003 +0000 @@ -447,6 +447,8 @@ CHECKED_ALLOCZ(s->q_inter_matrix, 64*32 * sizeof(int)) 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->input_picture, MAX_PICTURE_COUNT * sizeof(Picture*)) + CHECKED_ALLOCZ(s->reordered_input_picture, MAX_PICTURE_COUNT * sizeof(Picture*)) } CHECKED_ALLOCZ(s->blocks, 64*6*2 * sizeof(DCTELEM)) @@ -571,6 +573,8 @@ av_freep(&s->q_intra_matrix16); av_freep(&s->q_inter_matrix16); av_freep(&s->blocks); + av_freep(&s->input_picture); + av_freep(&s->reordered_input_picture); for(i=0; i<MAX_PICTURE_COUNT; i++){ free_picture(s, &s->picture[i]);