[FFmpeg-devel] [PATCH 2/5] lavfi/hqdn3d: use macros instead of hardcoded indexes.

Stefano Sabatini stefasab at gmail.com
Sat May 11 15:19:46 CEST 2013


On date Thursday 2013-05-09 01:53:24 +0200, Clément Bœsch encoded:
> ---
>  libavfilter/vf_hqdn3d.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/libavfilter/vf_hqdn3d.c b/libavfilter/vf_hqdn3d.c
> index 51adeb8..c0a14df 100644
> --- a/libavfilter/vf_hqdn3d.c
> +++ b/libavfilter/vf_hqdn3d.c
> @@ -300,7 +300,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
>                  in->width  >> (!!c * hqdn3d->hsub),
>                  in->height >> (!!c * hqdn3d->vsub),
>                  in->linesize[c], out->linesize[c],
> -                hqdn3d->coefs[c?2:0], hqdn3d->coefs[c?3:1]);
> +                hqdn3d->coefs[c ? CHROMA_SPATIAL : LUMA_SPATIAL],
> +                hqdn3d->coefs[c ? CHROMA_TMP     : LUMA_TMP]);
>      }

LGTM, thanks.
-- 
FFmpeg = Fundamental and Fancy Mythic Problematic Elastic Gadget


More information about the ffmpeg-devel mailing list