mirror of
https://github.com/mpv-player/mpv
synced 2025-01-30 11:42:04 +00:00
demux_rawvideo: fix timestamps in correct-pts mode
This commit is contained in:
parent
879c7a101b
commit
5de4a3ecc0
@ -144,7 +144,7 @@ static int demux_rawvideo_fill_buffer(demuxer_t* demuxer)
|
||||
|
||||
dp = new_demux_packet(imgsize);
|
||||
dp->pos = (spos - demuxer->movi_start);
|
||||
dp->pts = dp->pos / (float)(imgsize);
|
||||
dp->pts = dp->pos / (float)(imgsize) / fps;
|
||||
|
||||
size = stream_read(demuxer->stream, dp->buffer, imgsize);
|
||||
resize_demux_packet(dp, size);
|
||||
|
Loading…
Reference in New Issue
Block a user