From f0ca29eb5f476a281c8066214e3745244656d417 Mon Sep 17 00:00:00 2001 From: Peter Ross Date: Sun, 20 Feb 2011 12:24:09 +1100 Subject: bink: set audio stream codec_tag such that binkaudio decoder can identify bitstream version Signed-off-by: Ronald S. Bultje --- libavformat/bink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/bink.c') diff --git a/libavformat/bink.c b/libavformat/bink.c index 0087320ab5..60f4081bfb 100644 --- a/libavformat/bink.c +++ b/libavformat/bink.c @@ -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); -- cgit v1.2.3