diff options
author | Kostya <kostya.shishkov@gmail.com> | 2011-06-17 07:28:58 +0000 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-07-06 14:52:02 +0200 |
commit | df64da3b1ef0c7014135bce44e5f82becf81fe79 (patch) | |
tree | e9ecb6e91da26d99497ab733cc0df9a41e5ad0ee /libavcodec/binkaudio.c | |
parent | 0fedf754b24331ae80a50816cd02ad0eba9beba4 (diff) | |
download | ffmpeg-df64da3b1ef0c7014135bce44e5f82becf81fe79.tar.gz |
bink: pass Bink version to audio decoder through extradata instead of codec_tag.
This is needed because not all players (e.g. MPlayer) are able to distinguish
two different Bink audio decoders when codec_tag is set.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/binkaudio.c')
-rw-r--r-- | libavcodec/binkaudio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/binkaudio.c b/libavcodec/binkaudio.c index a05b0b56b2..9722bdff3e 100644 --- a/libavcodec/binkaudio.c +++ b/libavcodec/binkaudio.c @@ -90,7 +90,7 @@ static av_cold int decode_init(AVCodecContext *avctx) return -1; } - s->version_b = avctx->codec_tag == MKTAG('B','I','K','b'); + s->version_b = avctx->extradata && avctx->extradata[3] == 'b'; if (avctx->codec->id == CODEC_ID_BINKAUDIO_RDFT) { // audio is already interleaved for the RDFT format variant |