Commit 06521118 authored by Clément Bœsch's avatar Clément Bœsch

lavfi/hqdn3d: use macros instead of hardcoded indexes.

parent 1776177b
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment