From 8e96863b567d3770c9de1125eab29b0cc4e95441 Mon Sep 17 00:00:00 2001 From: Vignesh Venkatasubramanian Date: Thu, 21 May 2015 16:53:47 -0700 Subject: [PATCH] mkvmuxer: Set is_key to true for metadata blocks. Per matroska semantics, all metadata blocks should be considered key frames. Set it to true in AddMetadata functions. Change-Id: Ibc26845dc6cc72ccbf90ae8d4dcc27c948e8a375 --- mkvmuxer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mkvmuxer.cpp b/mkvmuxer.cpp index 17652e2..d14555b 100644 --- a/mkvmuxer.cpp +++ b/mkvmuxer.cpp @@ -1585,6 +1585,7 @@ bool Cluster::AddMetadata(const uint8* data, uint64 length, uint64 track_number, frame.set_track_number(track_number); frame.set_timestamp(abs_timecode); frame.set_duration(duration_timecode); + frame.set_is_key(true); // All metadata blocks are keyframes. return DoWriteFrame(&frame); } @@ -2380,6 +2381,7 @@ bool Segment::AddMetadata(const uint8* data, uint64 length, uint64 track_number, frame.set_track_number(track_number); frame.set_timestamp(timestamp_ns); frame.set_duration(duration_ns); + frame.set_is_key(true); // All metadata blocks are keyframes. return AddGenericFrame(&frame); }