diff mbox

[FFmpeg-devel,12/16] avcodec/binkaudio: Use assert instead of return for use of compile time disabled codecs

Message ID 20181231182246.14327-12-michael@niedermayer.cc
State Accepted
Commit bb2d8708f7bc463abbf918eb54a815c74d9bb613
Headers show

Commit Message

Michael Niedermayer Dec. 31, 2018, 6:22 p.m. UTC
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 libavcodec/binkaudio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/libavcodec/binkaudio.c b/libavcodec/binkaudio.c
index e0f3d14eef..96cf968c66 100644
--- a/libavcodec/binkaudio.c
+++ b/libavcodec/binkaudio.c
@@ -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)