summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2015-02-08 17:16:21 +0100
committerClément Bœsch <u@pkh.me>2015-02-08 17:16:51 +0100
commit55feff57cec85cfcc972d40e02af131f0cb86a34 (patch)
tree484a6792983459d58c264e450d106ba5ac3424bc /libavfilter
parent4b60bd1aacf04fe57c3cfa485d40c41d653bbab8 (diff)
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.
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_hqdn3d.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_hqdn3d.c b/libavfilter/vf_hqdn3d.c
index 4b1f2f997f..99d22d9ff7 100644
--- a/libavfilter/vf_hqdn3d.c
+++ b/libavfilter/vf_hqdn3d.c
@@ -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; \