[FFmpeg-cvslog] avformat/tty: fix last timestamp for fate

Paul B Mahol git at videolan.org
Mon Feb 10 17:48:49 EET 2020


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Feb 10 16:47:03 2020 +0100| [bbea268aa806a740e25c7dededf8dbe946e78bc5] | committer: Paul B Mahol

avformat/tty: fix last timestamp for fate

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

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

diff --git a/libavformat/tty.c b/libavformat/tty.c
index efa399c108..56438d5f1c 100644
--- a/libavformat/tty.c
+++ b/libavformat/tty.c
@@ -157,7 +157,7 @@ static int read_packet(AVFormatContext *avctx, AVPacket *pkt)
     if (pkt->size < 0)
         return pkt->size;
     pkt->stream_index = 0;
-    pkt->pts = pkt->pos / n;
+    pkt->pts = pkt->pos / s->chars_per_frame;
     pkt->flags |= AV_PKT_FLAG_KEY;
     return 0;
 }



More information about the ffmpeg-cvslog mailing list