[FFmpeg-cvslog] avcodec/binkaudio: Use assert instead of return for use of compile time disabled codecs
Michael Niedermayer
git at videolan.org
Wed Jan 2 01:24:00 EET 2019
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Mon Dec 31 18:49:27 2018 +0100| [bb2d8708f7bc463abbf918eb54a815c74d9bb613] | committer: Michael Niedermayer
avcodec/binkaudio: Use assert instead of return for use of compile time disabled codecs
Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bb2d8708f7bc463abbf918eb54a815c74d9bb613
---
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)
More information about the ffmpeg-cvslog
mailing list