提交 f0ca29eb 编写于 作者: P Peter Ross 提交者: Ronald S. Bultje

bink: set audio stream codec_tag such that binkaudio decoder can identify bitstream version

Signed-off-by: NRonald S. Bultje <rsbultje@gmail.com>
上级 8997bb88
......@@ -134,7 +134,7 @@ static int read_header(AVFormatContext *s, AVFormatParameters *ap)
if (!ast)
return AVERROR(ENOMEM);
ast->codec->codec_type = AVMEDIA_TYPE_AUDIO;
ast->codec->codec_tag = 0;
ast->codec->codec_tag = vst->codec->codec_tag;
ast->codec->sample_rate = avio_rl16(pb);
av_set_pts_info(ast, 64, 1, ast->codec->sample_rate);
flags = avio_rl16(pb);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册