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
This commit is contained in:
parent
b6311dc16f
commit
8e96863b56
@ -1585,6 +1585,7 @@ bool Cluster::AddMetadata(const uint8* data, uint64 length, uint64 track_number,
|
|||||||
frame.set_track_number(track_number);
|
frame.set_track_number(track_number);
|
||||||
frame.set_timestamp(abs_timecode);
|
frame.set_timestamp(abs_timecode);
|
||||||
frame.set_duration(duration_timecode);
|
frame.set_duration(duration_timecode);
|
||||||
|
frame.set_is_key(true); // All metadata blocks are keyframes.
|
||||||
return DoWriteFrame(&frame);
|
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_track_number(track_number);
|
||||||
frame.set_timestamp(timestamp_ns);
|
frame.set_timestamp(timestamp_ns);
|
||||||
frame.set_duration(duration_ns);
|
frame.set_duration(duration_ns);
|
||||||
|
frame.set_is_key(true); // All metadata blocks are keyframes.
|
||||||
return AddGenericFrame(&frame);
|
return AddGenericFrame(&frame);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user