aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2020-02-10 16:47:03 +0100
committerPaul B Mahol <onemda@gmail.com>2020-02-10 16:47:03 +0100
commitbbea268aa806a740e25c7dededf8dbe946e78bc5 (patch)
tree21162978e6abb9fcef31f6084553798ac7bdbbb1 /libavformat
parente63a66416fe911e039c6959ace6badbe5f097e3b (diff)
downloadffmpeg-bbea268aa806a740e25c7dededf8dbe946e78bc5.tar.gz
avformat/tty: fix last timestamp for fate
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/tty.c2
1 files changed, 1 insertions, 1 deletions
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;
}