mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 02:20:56 +01:00
avformat/aea: fix bitrate for mono
This commit is contained in:
parent
edb6d6d536
commit
9e531370b3
1 changed files with 1 additions and 1 deletions
|
|
@ -71,7 +71,7 @@ static int aea_read_header(AVFormatContext *s)
|
|||
st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
|
||||
st->codecpar->codec_id = AV_CODEC_ID_ATRAC1;
|
||||
st->codecpar->sample_rate = 44100;
|
||||
st->codecpar->bit_rate = 292000;
|
||||
st->codecpar->bit_rate = 146000 * channels;
|
||||
|
||||
if (channels != 1 && channels != 2) {
|
||||
av_log(s, AV_LOG_ERROR, "Channels %d not supported!\n", channels);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue