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

Clément Bœsch ubitux at gmail.com
Thu May 9 01:53:24 CEST 2013


---
 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]);
     }
 
     if (!direct)
-- 
1.8.2.2



More information about the ffmpeg-devel mailing list