diff --git a/libavformat/lafdec.c b/libavformat/lafdec.c index d63d76d74f..59a59dcfe9 100644 --- a/libavformat/lafdec.c +++ b/libavformat/lafdec.c @@ -132,6 +132,8 @@ static int laf_read_header(AVFormatContext *ctx) codec_id = AV_CODEC_ID_PCM_S24LE; bpp = 3; break; + default: + return AVERROR_INVALIDDATA; } s->index = 0;