diff --git a/libavformat/tty.c b/libavformat/tty.c
index f85f2300006108100135a249ea691cb75f05ade4..0ae1510491774577587b43c91607320a2bf80cbe 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);