From 9e531370b3da27aa72703b9bb40cdd697e88607e Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Mon, 2 Oct 2023 01:07:52 +0200 Subject: [PATCH] avformat/aea: fix bitrate for mono --- libavformat/aea.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/aea.c b/libavformat/aea.c index 684217a2a3..52e3147729 100644 --- a/libavformat/aea.c +++ b/libavformat/aea.c @@ -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);