10l...autoaspect was always applied to muxer aspect if using newer libavcodec...hope this is ok

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13670 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
rfelker 2004-10-18 12:26:45 +00:00
parent 74a68cfa3b
commit a733bc2208
1 changed files with 2 additions and 1 deletions

View File

@ -543,13 +543,14 @@ static int config(struct vf_instance_s* vf,
return 0;
}
}
else if (lavc_param_autoaspect)
else if (lavc_param_autoaspect) {
#if LIBAVCODEC_BUILD >= 4687
lavc_venc_context->sample_aspect_ratio = av_d2q((float)d_width/d_height*height / width, 255);
#else
lavc_venc_context->aspect_ratio =
#endif
mux_v->aspect = (float)d_width/d_height;
}
/* keyframe interval */
if (lavc_param_keyint >= 0) /* != -1 */