diff options
author | Clément Bœsch <ubitux@gmail.com> | 2012-11-29 04:43:28 +0400 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2012-11-29 04:43:28 +0400 |
commit | 5d796270c5375c0c81523fb36725073a68be9ab8 (patch) | |
tree | 3521483833dbea4fc113dd29b0c19e5662a253d5 /libavfilter | |
parent | 782993d9e42462d99fd839bdc0967e006bc0781e (diff) |
lavfi/thumbnail: re-use ctx instead of inlink->dst.
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_thumbnail.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_thumbnail.c b/libavfilter/vf_thumbnail.c index afaa3b7c03..0d245d9ddd 100644 --- a/libavfilter/vf_thumbnail.c +++ b/libavfilter/vf_thumbnail.c @@ -90,9 +90,9 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *frame) { int i, j, best_frame_idx = 0; double avg_hist[HIST_SIZE] = {0}, sq_err, min_sq_err = -1; - AVFilterLink *outlink = inlink->dst->outputs[0]; - ThumbContext *thumb = inlink->dst->priv; AVFilterContext *ctx = inlink->dst; + ThumbContext *thumb = ctx->priv; + AVFilterLink *outlink = ctx->outputs[0]; AVFilterBufferRef *picref; int *hist = thumb->frames[thumb->n].histogram; const uint8_t *p = frame->data[0]; |