changeset 11195:9bfd1b5d38cd

mpeg4 has only 8bit per numerator and denominator ...
author michael
date Mon, 20 Oct 2003 21:40:58 +0000
parents c9a3a1e70263
children 0750ab856742
files libmpcodecs/ve_lavc.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ve_lavc.c	Mon Oct 20 21:21:42 2003 +0000
+++ b/libmpcodecs/ve_lavc.c	Mon Oct 20 21:40:58 2003 +0000
@@ -446,7 +446,10 @@
 
 	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