From 6c7d339afcd114f77d765d79863514c263e9c2f0 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 19 Feb 2013 17:19:30 +0100 Subject: [PATCH] tty: set avg_frame_rate. The container does not store any timestamps and is CFR-only. --- libavformat/tty.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/tty.c b/libavformat/tty.c index f85f230000..0ae1510491 100644 --- a/libavformat/tty.c +++ b/libavformat/tty.c @@ -98,6 +98,7 @@ static int read_header(AVFormatContext *avctx) st->codec->width = width; st->codec->height = height; avpriv_set_pts_info(st, 60, framerate.den, framerate.num); + st->avg_frame_rate = framerate; /* simulate tty display speed */ s->chars_per_frame = FFMAX(av_q2d(st->time_base)*s->chars_per_frame, 1);