summaryrefslogtreecommitdiff
path: root/libavcodec/binkaudio.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-07-06 23:57:11 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-07-06 23:57:11 +0200
commitc3b6cc61e502b8df0d5bc6b9058dfc482a08d42a (patch)
treea03500dd560ac0aceadc3dbb485631a315ad89bf /libavcodec/binkaudio.c
parent4e59c8ecf1433b85b539c5e89bb68cfe8b839866 (diff)
parentf02f745e4aa070e5fabf1156b75c340171304933 (diff)
downloadffmpeg-c3b6cc61e502b8df0d5bc6b9058dfc482a08d42a.tar.gz
Merge remote-tracking branch 'qatar/master'
* qatar/master: ffserver: remove unused variable. Remove unused and outdated TODO file. gitignore: Drop individual .d ignore; it is already covered by a wildcard. lavf: deprecate AVStream.quality. bink: pass Bink version to audio decoder through extradata instead of codec_tag. libpostproc: Remove disabled code. flashsv: improve some comments and fix some wrong ones flashsv: Eliminate redundant variable indirection. flashsv: set reference frame type to full frame flashsv: replace bitstream description by a link to the specification flashsv: convert a debug av_log into av_dlog flashsv: simplify condition flashsv: return more meaningful error values flashsv: cosmetics: break some overly long lines flashsv: cosmetics: drop some unnecessary parentheses swscale: amend documentation to mention use of native depth for scaling. eval: add missing comma to tests. eval: fix memleak. H.264: make loopfilter bS const where applicable Conflicts: libavcodec/binkaudio.c libavformat/bink.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/binkaudio.c')
-rw-r--r--libavcodec/binkaudio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/binkaudio.c b/libavcodec/binkaudio.c
index ff36458c7e..d7dbd283e8 100644
--- a/libavcodec/binkaudio.c
+++ b/libavcodec/binkaudio.c
@@ -90,8 +90,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
return -1;
}
- if (avctx->extradata && avctx->extradata_size > 0)
- s->version_b = avctx->extradata[0];
+ 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