mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 12:02:23 +02:00
demux_raw: set keyframe flag
This is for uncompressed data, so every frame is a "keyframe". This is part of making this demuxer work with the demuxer layer caching and backward playback.
This commit is contained in:
parent
501876e2fa
commit
5d69dcfb89
@ -282,6 +282,7 @@ static bool raw_read_packet(struct demuxer *demuxer, struct demux_packet **pkt)
|
||||
return true;
|
||||
}
|
||||
|
||||
dp->keyframe = true;
|
||||
dp->pos = stream_tell(demuxer->stream);
|
||||
dp->pts = (dp->pos / p->frame_size) / p->frame_rate;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user