From 0652111833e20bf776ae93f153cfa9c33a8ad0f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Thu, 9 May 2013 01:22:22 +0200 Subject: [PATCH] lavfi/hqdn3d: use macros instead of hardcoded indexes. --- 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 8e8f553541..8f392803ff 100644 --- a/libavfilter/vf_hqdn3d.c +++ b/libavfilter/vf_hqdn3d.c @@ -300,7 +300,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) FF_CEIL_RSHIFT(in->width, (!!c * hqdn3d->hsub)), FF_CEIL_RSHIFT(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]); } if (!direct)