[Ffmpeg-devel] Third Try: Set bit_rate for asf format
Zuxy Meng
zuxy.meng
Sat Apr 28 04:49:47 CEST 2007
Hi,
2007/4/17, Reimar D?ffinger <Reimar.Doeffinger at stud.uni-karlsruhe.de>:
> Hello,
> On Tue, Apr 17, 2007 at 07:59:24PM +0800, Zuxy Meng wrote:
> > @@ -504,11 +509,14 @@
> >
> > for(i=0; i<128; i++){
> > int stream_num= asf->asfid2avid[i];
> > - if(stream_num>=0 && dar[i].num>0 && dar[i].den>0){
> > + if(stream_num>=0){
> > AVCodecContext *codec= s->streams[stream_num]->codec;
> > - av_reduce(&codec->sample_aspect_ratio.num,
> > - &codec->sample_aspect_ratio.den,
> > - dar[i].num, dar[i].den, INT_MAX);
> > + if (!codec->bit_rate)
> > + codec->bit_rate = bitrate[i];
> > + if (dar[i].num > 0 && dar[i].den > 0)
> > + av_reduce(&codec->sample_aspect_ratio.num,
> > + &codec->sample_aspect_ratio.den,
> > + dar[i].num, dar[i].den, INT_MAX);
>
> Hmm... you only change the indentation for that av_reduce? That should
> be done in a separate step I think.
No other comments apart from this? I'm still waiting for Michael's....
--
Zuxy
Beauty is truth,
While truth is beauty.
PGP KeyID: E8555ED6
More information about the ffmpeg-devel
mailing list