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

Michael Niedermayer michael at niedermayer.cc
Mon Dec 31 20:22:42 EET 2018


Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
 libavcodec/binkaudio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)
-- 
2.20.1



More information about the ffmpeg-devel mailing list