[FFmpeg-devel] [PATCH 2/5] lavfi/hqdn3d: use macros instead of hardcoded indexes.
Clément Bœsch
ubitux at gmail.com
Sun May 12 13:14:34 CEST 2013
On Sat, May 11, 2013 at 03:19:46PM +0200, Stefano Sabatini wrote:
> On date Thursday 2013-05-09 01:53:24 +0200, Clément Bœsch encoded:
> > ---
> > 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 51adeb8..c0a14df 100644
> > --- a/libavfilter/vf_hqdn3d.c
> > +++ b/libavfilter/vf_hqdn3d.c
> > @@ -300,7 +300,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
> > in->width >> (!!c * hqdn3d->hsub),
> > 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]);
> > }
>
> LGTM, thanks.
Pushed.
--
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130512/74232fd0/attachment.asc>
More information about the ffmpeg-devel
mailing list