mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
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:
parent
2d9fe6321e
commit
bb2d8708f7
@ -139,7 +139,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
|
|||||||
else if (CONFIG_BINKAUDIO_DCT_DECODER)
|
else if (CONFIG_BINKAUDIO_DCT_DECODER)
|
||||||
ff_dct_init(&s->trans.dct, frame_len_bits, DCT_III);
|
ff_dct_init(&s->trans.dct, frame_len_bits, DCT_III);
|
||||||
else
|
else
|
||||||
return -1;
|
av_assert0(0);
|
||||||
|
|
||||||
s->pkt = av_packet_alloc();
|
s->pkt = av_packet_alloc();
|
||||||
if (!s->pkt)
|
if (!s->pkt)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user