[FFmpeg-cvslog] lavfi/hqdn3d: use macros instead of hardcoded indexes.
Clément Bœsch
git at videolan.org
Sun May 12 13:13:19 CEST 2013
ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Thu May 9 01:22:22 2013 +0200| [0652111833e20bf776ae93f153cfa9c33a8ad0f0] | committer: Clément Bœsch
lavfi/hqdn3d: use macros instead of hardcoded indexes.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0652111833e20bf776ae93f153cfa9c33a8ad0f0
---
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 8e8f553..8f39280 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)
More information about the ffmpeg-cvslog
mailing list