aboutsummaryrefslogtreecommitdiff
path: root/libavcodec/adpcm.c
diff options
context:
space:
mode:
authorMichael Niedermayer2018-12-31 18:45:25 +0100
committerMichael Niedermayer2019-01-01 21:11:47 +0100
commit2d9fe6321e320f9cef2a767af30a7b5b2f65d799 (patch)
tree6d0f64f579e839f5fe014e15bb2ca7338b4985d9 /libavcodec/adpcm.c
parent5079eca22a16e91da4c3d7bb1505a894c6ec4dc3 (diff)
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>
Diffstat (limited to 'libavcodec/adpcm.c')
-rw-r--r--libavcodec/adpcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c
index cd3bbd33c2..aa9c7c5c4f 100644
--- a/libavcodec/adpcm.c
+++ b/libavcodec/adpcm.c
@@ -1679,7 +1679,7 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data,
break;
default:
- return -1;
+ av_assert0(0); // unsupported codec_id should not happen
}
if (avpkt->size && bytestream2_tell(&gb) == 0) {