diff options
author | Clément Bœsch <ubitux@gmail.com> | 2013-04-15 19:42:04 +0400 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2013-04-23 03:02:27 +0400 |
commit | b8a5c76131944b4cc17c6db609288d0000d56a43 (patch) | |
tree | 2aeabcf34ac5d3ada79c9ae6168dba392ab393dd /libavfilter/vf_blend.c | |
parent | f4596e8bb6f74599b8258c87036c237c5da4b209 (diff) |
lavfi: add frame counter into AVFilterLink and use it in filters.
Diffstat (limited to 'libavfilter/vf_blend.c')
-rw-r--r-- | libavfilter/vf_blend.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavfilter/vf_blend.c b/libavfilter/vf_blend.c index b2af5bfe5e..93b68bef3d 100644 --- a/libavfilter/vf_blend.c +++ b/libavfilter/vf_blend.c @@ -81,7 +81,6 @@ typedef struct { struct FFBufQueue queue_bottom; int hsub, vsub; ///< chroma subsampling values int frame_requested; - int framenum; char *all_expr; enum BlendMode all_mode; double all_opacity; @@ -382,7 +381,7 @@ static void blend_frame(AVFilterContext *ctx, uint8_t *bottom = bottom_buf->data[plane]; param = &b->params[plane]; - param->values[VAR_N] = b->framenum++; + param->values[VAR_N] = inlink->frame_count; param->values[VAR_T] = dst_buf->pts == AV_NOPTS_VALUE ? NAN : dst_buf->pts * av_q2d(inlink->time_base); param->values[VAR_W] = outw; param->values[VAR_H] = outh; |