# HG changeset patch # User aurel # Date 1161541989 0 # Node ID e5d148036c87d931b1199ddbe018709c546d60bd # Parent e46fa0f9192a68fb8cdfe8075347fe69041a64c3 use coded_width and coded_height instead of width and height diff -r e46fa0f9192a -r e5d148036c87 vp56.c --- a/vp56.c Sun Oct 22 17:25:16 2006 +0000 +++ b/vp56.c Sun Oct 22 18:33:09 2006 +0000 @@ -462,16 +462,16 @@ int stride = s->frames[VP56_FRAME_CURRENT].linesize[0]; int i; - s->plane_width[0] = s->avctx->width; - s->plane_width[1] = s->plane_width[2] = s->avctx->width/2; - s->plane_height[0] = s->avctx->height; - s->plane_height[1] = s->plane_height[2] = s->avctx->height/2; + s->plane_width[0] = s->avctx->coded_width; + s->plane_width[1] = s->plane_width[2] = s->avctx->coded_width/2; + s->plane_height[0] = s->avctx->coded_height; + s->plane_height[1] = s->plane_height[2] = s->avctx->coded_height/2; for (i=0; i<3; i++) s->stride[i] = s->flip * s->frames[VP56_FRAME_CURRENT].linesize[i]; - s->mb_width = (s->avctx->width+15) / 16; - s->mb_height = (s->avctx->height+15) / 16; + s->mb_width = (s->avctx->coded_width+15) / 16; + s->mb_height = (s->avctx->coded_height+15) / 16; if (s->mb_width > 1000 || s->mb_height > 1000) { av_log(avctx, AV_LOG_ERROR, "picture too big\n");