summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-08-31 19:39:17 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-02 04:15:49 +0200
commit039574d8d4a322ccddcd7f068b47e9f6aa955529 (patch)
treede2539e10b77356878e0a40e6d35d2eec3d7f378
parent0f985365fbb041e93c5f7cef0771631f281ca393 (diff)
downloadmpv-039574d8d4a322ccddcd7f068b47e9f6aa955529.tar.bz2
mpv-039574d8d4a322ccddcd7f068b47e9f6aa955529.tar.xz
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
-rw-r--r--libmpcodecs/vd_ffmpeg.c4
1 files 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;