提交 487b5410 编写于 作者: M Maxim Poliakovski 提交者: Anton Khirnov

omadec: fix bitrate for ATRAC3+ streams

Signed-off-by: NAnton Khirnov <anton@khirnov.net>
上级 23d0fdcf
...@@ -379,7 +379,7 @@ static int oma_read_header(AVFormatContext *s) ...@@ -379,7 +379,7 @@ static int oma_read_header(AVFormatContext *s)
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
} }
st->codec->sample_rate = samplerate; st->codec->sample_rate = samplerate;
st->codec->bit_rate = samplerate * framesize * 8 / 1024; st->codec->bit_rate = samplerate * framesize * 8 / 2048;
avpriv_set_pts_info(st, 64, 1, samplerate); avpriv_set_pts_info(st, 64, 1, samplerate);
av_log(s, AV_LOG_ERROR, "Unsupported codec ATRAC3+!\n"); av_log(s, AV_LOG_ERROR, "Unsupported codec ATRAC3+!\n");
break; break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册