mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 02:20:56 +01:00
vf_drawtext: use ctx for expressing outlink and dtext in end_frame
(Very) slighly improve readability.
This commit is contained in:
parent
3de684206e
commit
87f5e79732
1 changed files with 2 additions and 2 deletions
|
|
@ -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 ?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue