avformat/aea: fix bitrate for mono

This commit is contained in:
Paul B Mahol 2023-10-02 01:07:52 +02:00
parent edb6d6d536
commit 9e531370b3

View File

@ -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);