1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02: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:
Clément Bœsch
2015-02-08 17:16:21 +01:00
parent 4b60bd1aac
commit 55feff57ce

View File

@@ -155,7 +155,7 @@ static int denoise_depth(HQDN3DContext *s,
#define denoise(...) \ #define denoise(...) \
do { \ do { \
int ret = AVERROR_INVALIDDATA; \ int ret = AVERROR_BUG; \
switch (s->depth) { \ switch (s->depth) { \
case 8: ret = denoise_depth(__VA_ARGS__, 8); break; \ case 8: ret = denoise_depth(__VA_ARGS__, 8); break; \
case 9: ret = denoise_depth(__VA_ARGS__, 9); break; \ case 9: ret = denoise_depth(__VA_ARGS__, 9); break; \