mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 01:02:33 +00:00
avformat/aea: fix bitrate for mono
This commit is contained in:
parent
edb6d6d536
commit
9e531370b3
@ -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…
Reference in New Issue
Block a user