1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

avformat/tty: fix last timestamp for fate

This commit is contained in:
Paul B Mahol 2020-02-10 16:47:03 +01:00
parent e63a66416f
commit bbea268aa8

View 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;
}