lavfi/hqdn3d: use macros instead of hardcoded indexes.

This commit is contained in:
Clément Bœsch 2013-05-09 01:22:22 +02:00
parent 1776177b7f
commit 0652111833
1 changed files with 2 additions and 1 deletions

View File

@ -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)