History

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.

Clément Bœsch committed 11 years ago

Commit 55feff51 parent 4b60bd11 file · +1 −1Browse files

Unified · Split

libavfilter/vf_hqdn3d.c+1−1
@@ -155,7 +155,7 @@ static int denoise_depth(HQDN3DContext *s, · 154 unmodified lines
155155
156156 #define denoise(...) \
157157 do { \
158− int ret = AVERROR_INVALIDDATA; \
158+ int ret = AVERROR_BUG; \
159159 switch (s->depth) { \
160160 case 8: ret = denoise_depth(__VA_ARGS__, 8); break; \
161161 case 9: ret = denoise_depth(__VA_ARGS__, 9); break; \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t