tty: set avg_frame_rate.
authorAnton Khirnov <anton@khirnov.net>
Tue, 19 Feb 2013 16:19:30 +0000 (17:19 +0100)
committerAnton Khirnov <anton@khirnov.net>
Fri, 8 Mar 2013 07:11:05 +0000 (08:11 +0100)
The container does not store any timestamps and is CFR-only.

libavformat/tty.c

index f85f230..0ae1510 100644 (file)
@@ -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);