avcodec/binkaudio: Use assert instead of return for use of compile time disabled codecs

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2018-12-31 18:49:27 +01:00
parent 2d9fe6321e
commit bb2d8708f7
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
else if (CONFIG_BINKAUDIO_DCT_DECODER)
ff_dct_init(&s->trans.dct, frame_len_bits, DCT_III);
else
return -1;
av_assert0(0);
s->pkt = av_packet_alloc();
if (!s->pkt)