diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-02-19 20:19:30 +0400 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-03-08 11:11:05 +0400 |
commit | 6c7d339afcd114f77d765d79863514c263e9c2f0 (patch) | |
tree | 158f9834abcd07d52ef06b598961d43a3f686b7d /libavformat/tty.c | |
parent | bde48aa92d335e96bcbbca4e30d5bb72dfe04c41 (diff) |
tty: set avg_frame_rate.
The container does not store any timestamps and is CFR-only.
Diffstat (limited to 'libavformat/tty.c')
-rw-r--r-- | libavformat/tty.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |