[FFmpeg-cvslog] avformat/lafdec: check for not supported bpp
Paul B Mahol
git at videolan.org
Sat Feb 4 10:41:49 EET 2023
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Feb 4 08:55:22 2023 +0100| [4b922218e9ee581b9d41e73f38e132b94f79deb5] | committer: Paul B Mahol
avformat/lafdec: check for not supported bpp
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4b922218e9ee581b9d41e73f38e132b94f79deb5
---
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;
More information about the ffmpeg-cvslog
mailing list