Commit 6c7d339a authored by Anton Khirnov's avatar Anton Khirnov

tty: set avg_frame_rate.

The container does not store any timestamps and is CFR-only.
parent bde48aa9
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment