[FFmpeg-devel] [PATCH 4/9] avfilter/af_haas: validate par_m_source parameter
Timo Rothenpieler
timo at rothenpieler.org
Wed Nov 8 20:17:48 EET 2017
Fixes CID #1417663
---
libavfilter/af_haas.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavfilter/af_haas.c b/libavfilter/af_haas.c
index 691c251f54..fac4b6cf2f 100644
--- a/libavfilter/af_haas.c
+++ b/libavfilter/af_haas.c
@@ -162,6 +162,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
case 1: mid = src[1]; break;
case 2: mid = (src[0] + src[1]) * 0.5; break;
case 3: mid = (src[0] - src[1]) * 0.5; break;
+ default: return AVERROR(EINVAL);
}
mid *= level_in;
--
2.14.2
More information about the ffmpeg-devel
mailing list