From a733bc220841c452a3c8aab8ccca8cc028080f40 Mon Sep 17 00:00:00 2001 From: rfelker Date: Mon, 18 Oct 2004 12:26:45 +0000 Subject: 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 --- libmpcodecs/ve_lavc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libmpcodecs') diff --git a/libmpcodecs/ve_lavc.c b/libmpcodecs/ve_lavc.c index acf4e38e84..69873f7f48 100644 --- a/libmpcodecs/ve_lavc.c +++ b/libmpcodecs/ve_lavc.c @@ -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 */ -- cgit v1.2.3