diff options
author | Peter Ross <pross@xvid.org> | 2011-02-20 12:24:09 +1100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-02-26 03:16:06 +0100 |
commit | 777b365c8b39666856a5c4a7842f1c72f0b69d73 (patch) | |
tree | 2d529bef3e3c7cc74386c0373ed5e34f54396bf7 /libavformat | |
parent | 22c679d3db3802f0de64d93603eee887b5ffb4c1 (diff) | |
download | ffmpeg-777b365c8b39666856a5c4a7842f1c72f0b69d73.tar.gz |
bink: set audio stream codec_tag such that binkaudio decoder can identify bitstream version
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit f0ca29eb5f476a281c8066214e3745244656d417)
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/bink.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |