[SCM] libav/experimental: setting timebase in the encoder doesnt seem like a good idea

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:44:58 UTC 2013


The following commit has been merged in the experimental branch:
commit 16beae15f3b610dfaa1d39d1effa25816c4185ae
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Fri Sep 2 17:12:16 2005 +0000

    setting timebase in the encoder doesnt seem like a good idea
    
    Originally committed as revision 4547 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/oggvorbis.c b/libavcodec/oggvorbis.c
index c762e4c..4d23cba 100644
--- a/libavcodec/oggvorbis.c
+++ b/libavcodec/oggvorbis.c
@@ -92,8 +92,6 @@ static int oggvorbis_encode_init(AVCodecContext *avccontext) {
     vorbis_comment_clear(&context->vc);
        
     avccontext->frame_size = OGGVORBIS_FRAME_SIZE ;
-    avccontext->time_base.den = avccontext->sample_rate;
-    avccontext->time_base.num = 1;
  
     avccontext->coded_frame= avcodec_alloc_frame();
     avccontext->coded_frame->key_frame= 1;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list