mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
tty: set avg_frame_rate.
The container does not store any timestamps and is CFR-only.
This commit is contained in:
parent
bde48aa92d
commit
6c7d339afc
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user