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:
@@ -1417,6 +1417,7 @@ bool Segment::Finalize() {
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
// TODO(fgalligan): Add support for putting the Cues at the front.
|
// TODO(fgalligan): Add support for putting the Cues at the front.
|
||||||
|
if (output_cues_)
|
||||||
if (!seek_head_.AddSeekEntry(kMkvCues, MaxOffset()))
|
if (!seek_head_.AddSeekEntry(kMkvCues, MaxOffset()))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
@@ -1434,6 +1435,7 @@ bool Segment::Finalize() {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (output_cues_)
|
||||||
if (!cues_.Write(writer_cues_))
|
if (!cues_.Write(writer_cues_))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user