ffmpeg | branch: master | Paul B Mahol <[email protected]> | Mon Oct  2 01:07:52 
2023 +0200| [9e531370b3da27aa72703b9bb40cdd697e88607e] | committer: Paul B Mahol

avformat/aea: fix bitrate for mono

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9e531370b3da27aa72703b9bb40cdd697e88607e
---

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

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to