libwebm: Fix BlockNumber on CuePoint
- libwebm was writing the BlockNumber of the next Block instead of the Block that was just written. Change-Id: I344800fcea919a82d7f0a04a54cf510be3851ec6
This commit is contained in:
@@ -2005,7 +2005,7 @@ bool Segment::AddCuePoint(uint64 timestamp, uint64 track) {
|
||||
return false;
|
||||
|
||||
cue->set_time(timestamp / segment_info_.timecode_scale());
|
||||
cue->set_block_number(cluster->blocks_added() + 1);
|
||||
cue->set_block_number(cluster->blocks_added());
|
||||
cue->set_cluster_pos(cluster->position_for_cues());
|
||||
cue->set_track(track);
|
||||
if (!cues_.AddCue(cue))
|
||||
|
||||
Reference in New Issue
Block a user