Commit f04c8333 authored by aurel's avatar aurel

use coded_width and coded_height instead of width and height

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6769 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 6459ae7e
...@@ -462,16 +462,16 @@ static int vp56_size_changed(AVCodecContext *avctx, vp56_context_t *s) ...@@ -462,16 +462,16 @@ static int vp56_size_changed(AVCodecContext *avctx, vp56_context_t *s)
int stride = s->frames[VP56_FRAME_CURRENT].linesize[0]; int stride = s->frames[VP56_FRAME_CURRENT].linesize[0];
int i; int i;
s->plane_width[0] = s->avctx->width; s->plane_width[0] = s->avctx->coded_width;
s->plane_width[1] = s->plane_width[2] = s->avctx->width/2; s->plane_width[1] = s->plane_width[2] = s->avctx->coded_width/2;
s->plane_height[0] = s->avctx->height; s->plane_height[0] = s->avctx->coded_height;
s->plane_height[1] = s->plane_height[2] = s->avctx->height/2; s->plane_height[1] = s->plane_height[2] = s->avctx->coded_height/2;
for (i=0; i<3; i++) for (i=0; i<3; i++)
s->stride[i] = s->flip * s->frames[VP56_FRAME_CURRENT].linesize[i]; s->stride[i] = s->flip * s->frames[VP56_FRAME_CURRENT].linesize[i];
s->mb_width = (s->avctx->width+15) / 16; s->mb_width = (s->avctx->coded_width+15) / 16;
s->mb_height = (s->avctx->height+15) / 16; s->mb_height = (s->avctx->coded_height+15) / 16;
if (s->mb_width > 1000 || s->mb_height > 1000) { if (s->mb_width > 1000 || s->mb_height > 1000) {
av_log(avctx, AV_LOG_ERROR, "picture too big\n"); av_log(avctx, AV_LOG_ERROR, "picture too big\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment