Module: libav
Branch: master
Commit: 6c7d339afcd114f77d765d79863514c263e9c2f0

Author:    Anton Khirnov <[email protected]>
Committer: Anton Khirnov <[email protected]>
Date:      Tue Feb 19 17:19:30 2013 +0100

tty: set avg_frame_rate.

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

---

 libavformat/tty.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

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

_______________________________________________
libav-commits mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to