mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-30 13:50:50 +08:00
avfilter/hqdn3d: an invalid bit depth means a bug, not invalid read data
This code looks clumsy, and an assert would probably be more welcome.
This commit is contained in:
@@ -155,7 +155,7 @@ static int denoise_depth(HQDN3DContext *s,
|
||||
|
||||
#define denoise(...) \
|
||||
do { \
|
||||
int ret = AVERROR_INVALIDDATA; \
|
||||
int ret = AVERROR_BUG; \
|
||||
switch (s->depth) { \
|
||||
case 8: ret = denoise_depth(__VA_ARGS__, 8); break; \
|
||||
case 9: ret = denoise_depth(__VA_ARGS__, 9); break; \
|
||||
|
||||
Reference in New Issue
Block a user