[FFmpeg-cvslog] tty: set avg_frame_rate.

Anton Khirnov git at videolan.org
Tue Mar 12 16:03:30 CET 2013


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Feb 19 17:19:30 2013 +0100| [6c7d339afcd114f77d765d79863514c263e9c2f0] | committer: Anton Khirnov

tty: set avg_frame_rate.

The container does not store any timestamps and is CFR-only.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6c7d339afcd114f77d765d79863514c263e9c2f0
---

 libavformat/tty.c |    1 +
 1 file changed, 1 insertion(+)

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



More information about the ffmpeg-cvslog mailing list