mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 20:52:44 +01:00
Working on new sub format
This commit is contained in:
parent
37e10e65eb
commit
44f5d5672b
@ -711,7 +711,7 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
|
||||
int numberOfPaletteEntries = buffer[21] + (buffer[20] << 8);
|
||||
for (int i = 0; i < numberOfPaletteEntries; i++)
|
||||
{
|
||||
PaletteUpdates.Add(new Palette()
|
||||
PaletteUpdates.Add(new Palette
|
||||
{
|
||||
PaletteEntryId = buffer[idx++],
|
||||
Y = buffer[idx++],
|
||||
@ -1008,6 +1008,7 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
|
||||
LoadSubtitleFromM2Ts(subtitle, fs);
|
||||
}
|
||||
}
|
||||
subtitle.Renumber();
|
||||
}
|
||||
|
||||
private void LoadSubtitleFromMpeg2PesPackets(Subtitle subtitle, Stream stream)
|
||||
@ -1044,7 +1045,7 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
|
||||
}
|
||||
}
|
||||
|
||||
public void LoadSubtitleFromM2Ts(Subtitle subtitle, Stream ms)
|
||||
private void LoadSubtitleFromM2Ts(Subtitle subtitle, Stream ms)
|
||||
{
|
||||
var subtitlePackets = new List<Packet>();
|
||||
const int packetLength = 188;
|
||||
|
Loading…
Reference in New Issue
Block a user