[Ffmpeg-devel] Third Try: Set bit_rate for asf format
Reimar Döffinger
Reimar.Doeffinger
Tue Apr 17 15:59:39 CEST 2007
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.
Greetings,
Reimar D?ffinger
More information about the ffmpeg-devel
mailing list