mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
au: set bit rate
This commit is contained in:
parent
3f98848d6e
commit
9a7b56883d
@ -111,6 +111,7 @@ static int au_read_header(AVFormatContext *s)
|
|||||||
st->codec->codec_id = codec;
|
st->codec->codec_id = codec;
|
||||||
st->codec->channels = channels;
|
st->codec->channels = channels;
|
||||||
st->codec->sample_rate = rate;
|
st->codec->sample_rate = rate;
|
||||||
|
st->codec->bit_rate = channels * rate * bps;
|
||||||
avpriv_set_pts_info(st, 64, 1, rate);
|
avpriv_set_pts_info(st, 64, 1, rate);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user