avcodec/binkaudio: Use assert instead of return for use of compile time disabled...
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 31 Dec 2018 17:49:27 +0000 (18:49 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 1 Jan 2019 20:11:47 +0000 (21:11 +0100)
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/binkaudio.c

index e0f3d14..96cf968 100644 (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)