1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-21 10:51:51 +00: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:
wm4 2019-05-20 02:02:37 +02:00
parent f369178583
commit 7609d1087d

View File

@ -280,6 +280,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;