Mercurial > libavcodec.hg
comparison oggvorbis.c @ 2851:411601677547 libavcodec
setting timebase in the encoder doesnt seem like a good idea
author | michael |
---|---|
date | Fri, 02 Sep 2005 17:12:16 +0000 |
parents | c553a407b1b6 |
children | 303b270eee3d |
comparison
equal
deleted
inserted
replaced
2850:c553a407b1b6 | 2851:411601677547 |
---|---|
90 vorbis_dsp_clear(&context->vd); | 90 vorbis_dsp_clear(&context->vd); |
91 vorbis_info_clear(&context->vi);*/ | 91 vorbis_info_clear(&context->vi);*/ |
92 vorbis_comment_clear(&context->vc); | 92 vorbis_comment_clear(&context->vc); |
93 | 93 |
94 avccontext->frame_size = OGGVORBIS_FRAME_SIZE ; | 94 avccontext->frame_size = OGGVORBIS_FRAME_SIZE ; |
95 avccontext->time_base.den = avccontext->sample_rate; | |
96 avccontext->time_base.num = 1; | |
97 | 95 |
98 avccontext->coded_frame= avcodec_alloc_frame(); | 96 avccontext->coded_frame= avcodec_alloc_frame(); |
99 avccontext->coded_frame->key_frame= 1; | 97 avccontext->coded_frame->key_frame= 1; |
100 | 98 |
101 return 0 ; | 99 return 0 ; |