From 039574d8d4a322ccddcd7f068b47e9f6aa955529 Mon Sep 17 00:00:00 2001 From: reimar Date: Tue, 31 Aug 2010 19:39:17 +0000 Subject: [PATCH] vd_ffmpeg: Set avctx->coded_width/coded_height instead of width/height That's how it is supposed to be done. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32037 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vd_ffmpeg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c index 9cefcad065..0101c5d39d 100644 --- a/libmpcodecs/vd_ffmpeg.c +++ b/libmpcodecs/vd_ffmpeg.c @@ -234,8 +234,8 @@ static int init(sh_video_t *sh){ avctx->flags|= lavc_param->bitexact; - avctx->width = sh->disp_w; - avctx->height= sh->disp_h; + avctx->coded_width = sh->disp_w; + avctx->coded_height= sh->disp_h; avctx->workaround_bugs= lavc_param->workaround_bugs; avctx->error_recognition= lavc_param->error_resilience; if(lavc_param->gray) avctx->flags|= CODEC_FLAG_GRAY;