[FFmpeg-cvslog] vf_drawtext: use ctx for expressing outlink and dtext in end_frame
Stefano Sabatini
git at videolan.org
Sat Sep 24 12:42:10 CEST 2011
ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Fri Sep 23 14:28:26 2011 +0200| [87f5e79732bb295765b5669eb03fc2d9676e588f] | committer: Stefano Sabatini
vf_drawtext: use ctx for expressing outlink and dtext in end_frame
(Very) slighly improve readability.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=87f5e79732bb295765b5669eb03fc2d9676e588f
---
libavfilter/vf_drawtext.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c
index 888c996..bebe0d1 100644
--- a/libavfilter/vf_drawtext.c
+++ b/libavfilter/vf_drawtext.c
@@ -798,9 +798,9 @@ static void null_draw_slice(AVFilterLink *link, int y, int h, int slice_dir) { }
static void end_frame(AVFilterLink *inlink)
{
- AVFilterLink *outlink = inlink->dst->outputs[0];
AVFilterContext *ctx = inlink->dst;
- DrawTextContext *dtext = inlink->dst->priv;
+ AVFilterLink *outlink = ctx->outputs[0];
+ DrawTextContext *dtext = ctx->priv;
AVFilterBufferRef *picref = inlink->cur_buf;
dtext->var_values[VAR_T] = picref->pts == AV_NOPTS_VALUE ?
More information about the ffmpeg-cvslog
mailing list