aboutsummaryrefslogtreecommitdiffhomepage
path: root/libmpcodecs
diff options
context:
space:
mode:
authorGravatar michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-10-20 21:40:58 +0000
committerGravatar michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-10-20 21:40:58 +0000
commitc32e44be08fc612284a0141f2ceb0e8a485ad328 (patch)
tree6ff5179ced62487009da83082b75f3a4fe9a85fd /libmpcodecs
parent4b29d38b015c189bfce66f1def81f0e22492a348 (diff)
mpeg4 has only 8bit per numerator and denominator ...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11196 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/ve_lavc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libmpcodecs/ve_lavc.c b/libmpcodecs/ve_lavc.c
index 80930195c9..335208b2fc 100644
--- a/libmpcodecs/ve_lavc.c
+++ b/libmpcodecs/ve_lavc.c
@@ -446,7 +446,10 @@ static int config(struct vf_instance_s* vf,
if (e && ratio > 0.1 && ratio < 10.0) {
#if LIBAVCODEC_BUILD >= 4687
- lavc_venc_context->sample_aspect_ratio= av_d2q(ratio * height / width, 30000);
+ lavc_venc_context->sample_aspect_ratio= av_d2q(ratio * height / width, 255);
+ mp_dbg(MSGT_MENCODER, MSGL_DBG2, "sample_aspect_ratio: %d/%d\n",
+ lavc_venc_context->sample_aspect_ratio.num,
+ lavc_venc_context->sample_aspect_ratio.den);
#else
lavc_venc_context->aspect_ratio= ratio;
#endif