0
0
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:
wm4 2019-05-20 02:02:37 +02:00
parent 501876e2fa
commit 5d69dcfb89

View File

@ -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;