Mercurial > libavcodec.hg
diff mpegvideo.c @ 650:ef4a33aad86e libavcodec
reducing sizeof MpegEncContext to avoid stack overflow on crap M$ windo$
author | michaelni |
---|---|
date | Wed, 11 Sep 2002 07:26:43 +0000 |
parents | 3e0f62e5eed6 |
children | 45e8f39fda50 |
line wrap: on
line diff
--- a/mpegvideo.c Sat Sep 07 10:57:51 2002 +0000 +++ b/mpegvideo.c Wed Sep 11 07:26:43 2002 +0000 @@ -245,6 +245,9 @@ CHECKED_ALLOCZ( s->pb2_buffer, PB_BUFFER_SIZE); } + if(s->msmpeg4_version){ + CHECKED_ALLOCZ(s->ac_stats, 2*2*(MAX_LEVEL+1)*(MAX_RUN+1)*2*sizeof(int)); + } CHECKED_ALLOCZ(s->avctx->stats_out, 256); } @@ -349,6 +352,7 @@ av_freep(&s->edge_emu_buffer); av_freep(&s->non_b_mv4_table); av_freep(&s->avctx->stats_out); + av_freep(&s->ac_stats); for(i=0;i<3;i++) { int j;