work on mcc

This commit is contained in:
Nikolaj Olsson 2021-03-27 20:09:17 +01:00
parent 97e5a93d2d
commit bb83ac01fc

View File

@ -32,6 +32,11 @@ namespace Nikse.SubtitleEdit.Core.Cea708
{ {
var bytes = new List<byte>(); var bytes = new List<byte>();
var smpte291M = new Smpte291M(counter, 20, bytes.ToArray()); var smpte291M = new Smpte291M(counter, 20, bytes.ToArray());
smpte291M.CcDataSectionCcData.CcData[2].Valid = false;
smpte291M.CcDataSectionCcData.CcData[2].Type = 2;
smpte291M.CcDataSectionCcData.CcData[2].Data1 = 0;
smpte291M.CcDataSectionCcData.CcData[2].Data2 = 0;
smpte291M.CcDataSectionCcData.CcData[3].Valid = false;
var resultBytes = smpte291M.GetBytes(); var resultBytes = smpte291M.GetBytes();
var hex = ByteArrayToHexString(resultBytes); var hex = ByteArrayToHexString(resultBytes);
return hex; return hex;