diff options
Diffstat (limited to 'libavcodec/binkaudio.c')
-rw-r--r-- | libavcodec/binkaudio.c | 3 |
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 |