Fix muxer output with no Cues.
- Fixed a bug with the muxer where it would generate a entry in the SeekHead for a Cues element with OutputCues set to false. - Fixed a bug with the muxer where it would generate an empty Cues element with OutputCues set to false. - Issue:http://code.google.com/p/webm/issues/detail?id=383 Change-Id: I99cc404a7e8ad61759dbb57ab769625dd724240c
This commit is contained in:
10
mkvmuxer.cpp
10
mkvmuxer.cpp
@@ -1417,8 +1417,9 @@ bool Segment::Finalize() {
|
||||
return false;
|
||||
|
||||
// TODO(fgalligan): Add support for putting the Cues at the front.
|
||||
if (!seek_head_.AddSeekEntry(kMkvCues, MaxOffset()))
|
||||
return false;
|
||||
if (output_cues_)
|
||||
if (!seek_head_.AddSeekEntry(kMkvCues, MaxOffset()))
|
||||
return false;
|
||||
|
||||
if (chunking_) {
|
||||
if (!chunk_writer_cues_)
|
||||
@@ -1434,8 +1435,9 @@ bool Segment::Finalize() {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!cues_.Write(writer_cues_))
|
||||
return false;
|
||||
if (output_cues_)
|
||||
if (!cues_.Write(writer_cues_))
|
||||
return false;
|
||||
|
||||
if (!seek_head_.Finalize(writer_header_))
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user