# HG changeset patch # User michael # Date 1066837006 0 # Node ID 5ebb4ae753d3ae8ac006e30e7d8ee354940fff45 # Parent 27073c5532dc95045dc53437a0d26a5273ffa441 112 bytes smaller MpegEncContext diff -r 27073c5532dc -r 5ebb4ae753d3 mpegvideo.c --- 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; ipicture[i]); diff -r 27073c5532dc -r 5ebb4ae753d3 mpegvideo.h --- a/mpegvideo.h Wed Oct 22 12:01:21 2003 +0000 +++ b/mpegvideo.h Wed Oct 22 15:36:46 2003 +0000 @@ -302,8 +302,8 @@ int linesize; ///< line size, in bytes, may be different from width int uvlinesize; ///< line size, for chroma in bytes, may be different from width Picture *picture; ///< main picture buffer - Picture *input_picture[MAX_PICTURE_COUNT]; ///< next pictures on display order for encoding - Picture *reordered_input_picture[MAX_PICTURE_COUNT]; ///< pointer to the next pictures in codedorder for encoding + Picture **input_picture; ///< next pictures on display order for encoding + Picture **reordered_input_picture; ///< pointer to the next pictures in codedorder for encoding /** * copy of the previous picture structure.