[FFmpeg-devel] [PATCH 4/9] avfilter/af_haas: validate par_m_source parameter

Paul B Mahol onemda at gmail.com
Wed Nov 8 21:04:10 EET 2017


On 11/8/17, Timo Rothenpieler <timo at rothenpieler.org> wrote:
> 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
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>

ok


More information about the ffmpeg-devel mailing list