summaryrefslogtreecommitdiff
path: root/libavcodec/vp56.c
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2006-10-22 18:33:09 +0000
committerAurelien Jacobs <aurel@gnuage.org>2006-10-22 18:33:09 +0000
commit24d3e5a2f2ad2779376753772b321a7390dacb20 (patch)
tree843d716e04af2a2eebb5c4beb2ab35510e8bcf1f /libavcodec/vp56.c
parent47babca8396af9e765d9f29b1e8586603b0f1ebd (diff)
use coded_width and coded_height instead of width and height
Originally committed as revision 6769 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vp56.c')
-rw-r--r--libavcodec/vp56.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/vp56.c b/libavcodec/vp56.c
index 118240b66a..eb78d02e47 100644
--- a/libavcodec/vp56.c
+++ b/libavcodec/vp56.c
@@ -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 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");