[Mplayer-cvslog] CVS: main/libmpcodecs ve_lavc.c,1.79,1.80
Michael Niedermayer CVS
michael at mplayerhq.hu
Mon Oct 20 23:41:43 CEST 2003
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv24145
Modified Files:
ve_lavc.c
Log Message:
mpeg4 has only 8bit per numerator and denominator ...
Index: ve_lavc.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ve_lavc.c,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -r1.79 -r1.80
--- ve_lavc.c 20 Oct 2003 21:21:42 -0000 1.79
+++ ve_lavc.c 20 Oct 2003 21:40:58 -0000 1.80
@@ -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
More information about the MPlayer-cvslog
mailing list