Mercurial > libavcodec.hg
diff mpegvideo.c @ 1546:5d06823e2ee9 libavcodec
export mpeg2 active display area / pan scan
fix mpeg2 aspect_ratio for the rare case that active display area != AVCodecContext.width/height
decode sequence display extension & picture display extension
author | michael |
---|---|
date | Mon, 20 Oct 2003 09:52:02 +0000 |
parents | 576861d6343a |
children | 26c6ecba99a1 |
line wrap: on
line diff
--- a/mpegvideo.c Sun Oct 19 21:05:41 2003 +0000 +++ b/mpegvideo.c Mon Oct 20 09:52:02 2003 +0000 @@ -302,6 +302,7 @@ } } pic->qstride= s->mb_stride; + CHECKED_ALLOCZ(pic->pan_scan , 1 * sizeof(AVPanScan)) } //it might be nicer if the application would keep track of these but it would require a API change @@ -332,6 +333,7 @@ av_freep(&pic->mbskip_table); av_freep(&pic->qscale_table); av_freep(&pic->mb_type_base); + av_freep(&pic->pan_scan); pic->mb_type= NULL; for(i=0; i<2; i++){ av_freep(&pic->motion_val[i]);