diff options
author | Clément Bœsch <ubitux@gmail.com> | 2013-05-09 01:22:22 +0200 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2013-05-12 13:07:47 +0200 |
commit | 0652111833e20bf776ae93f153cfa9c33a8ad0f0 (patch) | |
tree | cb428335fbcb95d7150bdd3be841525aa2339957 /libavfilter/vf_hqdn3d.c | |
parent | 1776177b7f1ae67ad3b42d99464b141ee4082310 (diff) | |
download | ffmpeg-streaming-0652111833e20bf776ae93f153cfa9c33a8ad0f0.zip ffmpeg-streaming-0652111833e20bf776ae93f153cfa9c33a8ad0f0.tar.gz |
lavfi/hqdn3d: use macros instead of hardcoded indexes.
Diffstat (limited to 'libavfilter/vf_hqdn3d.c')
-rw-r--r-- | libavfilter/vf_hqdn3d.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) |