mirror of https://github.com/mpv-player/mpv
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:
parent
74a68cfa3b
commit
a733bc2208
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue