vf_drawtext: do not reset the frame number in config_input.
authorAnton Khirnov <anton@khirnov.net>
Mon, 18 Mar 2013 21:07:10 +0000 (22:07 +0100)
committerAnton Khirnov <anton@khirnov.net>
Fri, 17 May 2013 05:43:07 +0000 (07:43 +0200)
Frame number should be incremented normally even if the link properties
change.

libavfilter/vf_drawtext.c

index ab867be4eb89c984a15a9a46d7b9ee7844ed2e02..2989bd5034caddaa8171ad75eecdb68625c9b34c 100644 (file)
@@ -569,7 +569,6 @@ static int config_input(AVFilterLink *inlink)
 
     s->var_values[VAR_X] = 0;
     s->var_values[VAR_Y] = 0;
-    s->var_values[VAR_N] = 0;
     s->var_values[VAR_T] = NAN;
 
     av_lfg_init(&s->prng, av_get_random_seed());