[Mplayer-cvslog] CVS: main/libmpcodecs ve_lavc.c,1.56,1.57

Michael Niedermayer CVS michael at mplayerhq.hu
Wed Mar 12 16:44:47 CET 2003


Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv8594

Modified Files:
	ve_lavc.c 
Log Message:
per context frame_rate_base


Index: ve_lavc.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ve_lavc.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -r1.56 -r1.57
--- ve_lavc.c	5 Mar 2003 16:40:14 -0000	1.56
+++ ve_lavc.c	12 Mar 2003 15:44:24 -0000	1.57
@@ -240,7 +240,12 @@
     else
 	lavc_venc_context->bit_rate = 800000; /* default */
     lavc_venc_context->bit_rate_tolerance= lavc_param_vrate_tolerance*1000;
-    lavc_venc_context->frame_rate = (float)mux_v->h.dwRate/mux_v->h.dwScale * FRAME_RATE_BASE;
+#if LIBAVCODEC_BUILD >= 4662
+    lavc_venc_context->frame_rate      = mux_v->h.dwRate;
+    lavc_venc_context->frame_rate_base = mux_v->h.dwScale;
+#else
+    lavc_venc_context->frame_rate      = mux_v->h.dwRate*FRAME_RATE_BASE/mux_v->h.dwScale;
+#endif
     lavc_venc_context->qmin= lavc_param_vqmin;
     lavc_venc_context->qmax= lavc_param_vqmax;
 #if LIBAVCODEC_BUILD >= 4646



More information about the MPlayer-cvslog mailing list