mirror of https://github.com/mpv-player/mpv
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