avcodec/adpcm: use assert for codec id instead or error return

A unsupported codec_id is a internal error and should not happen

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2018-12-31 18:45:25 +01:00
parent 5079eca22a
commit 2d9fe6321e
1 changed files with 1 additions and 1 deletions

View File

@ -1679,7 +1679,7 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data,
break; break;
default: default:
return -1; av_assert0(0); // unsupported codec_id should not happen
} }
if (avpkt->size && bytestream2_tell(&gb) == 0) { if (avpkt->size && bytestream2_tell(&gb) == 0) {