[MPlayer-cvslog] r28695 - trunk/libmpcodecs/ae_lavc.c

diego subversion at mplayerhq.hu
Sat Feb 21 22:03:57 CET 2009


Author: diego
Date: Sat Feb 21 22:03:57 2009
New Revision: 28695

Log:
Set time_base to 1/samplerate, like FFmpeg does, instead of leaving it at the
default 0/1. This is not required by a lot of codecs, but at least by libvorbis.
patch by Nicolas George, nicolas.george normalesup org

Modified:
   trunk/libmpcodecs/ae_lavc.c

Modified: trunk/libmpcodecs/ae_lavc.c
==============================================================================
--- trunk/libmpcodecs/ae_lavc.c	Sat Feb 21 21:25:02 2009	(r28694)
+++ trunk/libmpcodecs/ae_lavc.c	Sat Feb 21 22:03:57 2009	(r28695)
@@ -206,6 +206,8 @@ int mpae_init_lavc(audio_encoder_t *enco
 	// put sample parameters
 	lavc_actx->channels = encoder->params.channels;
 	lavc_actx->sample_rate = encoder->params.sample_rate;
+	lavc_actx->time_base.num = 1;
+	lavc_actx->time_base.den = encoder->params.sample_rate;
         if(lavc_param_abitrate<1000)
                 lavc_actx->bit_rate = encoder->params.bitrate = lavc_param_abitrate * 1000;
         else



More information about the MPlayer-cvslog mailing list