1
mirror of https://github.com/mpv-player/mpv synced 2024-07-15 22:21:38 +02:00

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
This commit is contained in:
reimar 2010-08-31 19:39:17 +00:00 committed by Uoti Urpala
parent 0f985365fb
commit 039574d8d4

View File

@ -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;