[FFmpeg-cvslog] lavfi/thumbnail: re-use ctx instead of inlink->dst.
Clément Bœsch
git at videolan.org
Thu Nov 29 01:45:09 CET 2012
ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Thu Nov 29 01:43:28 2012 +0100| [5d796270c5375c0c81523fb36725073a68be9ab8] | committer: Clément Bœsch
lavfi/thumbnail: re-use ctx instead of inlink->dst.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5d796270c5375c0c81523fb36725073a68be9ab8
---
libavfilter/vf_thumbnail.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavfilter/vf_thumbnail.c b/libavfilter/vf_thumbnail.c
index afaa3b7..0d245d9 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];
More information about the ffmpeg-cvslog
mailing list