lavfi/hqdn3d: use macros instead of hardcoded indexes.

pull/18/head
Clément Bœsch 12 years ago
parent 1776177b7f
commit 0652111833
  1. 3
      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)

Loading…
Cancel
Save