diff options
author | Paul B Mahol <onemda@gmail.com> | 2023-02-04 08:55:22 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2023-02-04 09:40:34 +0100 |
commit | 4b922218e9ee581b9d41e73f38e132b94f79deb5 (patch) | |
tree | 7b85a4149897fb0202d4d5e8180a1e779e70365b | |
parent | 332a4d798d5c0bc3de809f6db22e99ae428d2776 (diff) | |
download | ffmpeg-4b922218e9ee581b9d41e73f38e132b94f79deb5.tar.gz |
avformat/lafdec: check for not supported bpp
-rw-r--r-- | libavformat/lafdec.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |