vf_fps: set frame_rate.

(cherry picked from ffmpeg commit 0d24931604)

Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
Nicolas George 2015-11-03 09:57:20 -08:00 committed by Anton Khirnov
parent 61fb67dcb2
commit 1062880d69

View File

@ -116,9 +116,10 @@ static int config_props(AVFilterLink* link)
{
FPSContext *s = link->src->priv;
link->time_base = (AVRational){ s->framerate.den, s->framerate.num };
link->w = link->src->inputs[0]->w;
link->h = link->src->inputs[0]->h;
link->time_base = (AVRational){ s->framerate.den, s->framerate.num };
link->frame_rate = s->framerate;
link->w = link->src->inputs[0]->w;
link->h = link->src->inputs[0]->h;
return 0;
}