From 4b922218e9ee581b9d41e73f38e132b94f79deb5 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sat, 4 Feb 2023 08:55:22 +0100 Subject: [PATCH] avformat/lafdec: check for not supported bpp --- libavformat/lafdec.c | 2 ++ 1 file changed, 2 insertions(+) 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;