1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-28 20:53:54 +02:00

tty: set avg_frame_rate.

The container does not store any timestamps and is CFR-only.
This commit is contained in:
Anton Khirnov 2013-02-19 17:19:30 +01:00
parent bde48aa92d
commit 6c7d339afc

View 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);