]> git.sesse.net Git - ffmpeg/commitdiff
avformat/tty: fix last timestamp for fate
authorPaul B Mahol <onemda@gmail.com>
Mon, 10 Feb 2020 15:47:03 +0000 (16:47 +0100)
committerPaul B Mahol <onemda@gmail.com>
Mon, 10 Feb 2020 15:47:03 +0000 (16:47 +0100)
libavformat/tty.c

index efa399c108a7a30b768d2656ed68f980c9c577ce..56438d5f1cfe41da5e06f959adcc6659e7bf7ba3 100644 (file)
@@ -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;
 }