mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2025-02-01 05:21:40 +01:00
Read more variations of "S_DVBSUB" from mkv files - thx dreammday :)
This commit is contained in:
parent
77552eff7e
commit
39e573f07e
@ -1,6 +1,6 @@
|
||||
Subtitle Edit Changelog
|
||||
|
||||
3.4.13 (xh May 2016) BETA
|
||||
3.4.13 (xth May 2016) BETA
|
||||
* NEW:
|
||||
* Added new subtitle format - thx Oli
|
||||
* IMPROVED:
|
||||
@ -12,12 +12,13 @@
|
||||
* Spell check "change" / "change all" issue regarding brackets/dash - thx jc
|
||||
* Fixed issue where current frame rate was lost when loading new sub - thx Elad
|
||||
* Remove bad chars when saving TTML 1.0
|
||||
* Minor fix for "Toggle dashed" inside italic tag - thx Bryan
|
||||
* Minor fix for "Toggle dashes" inside italic tag - thx Bryan
|
||||
* Sometimes Dutch was detected as English
|
||||
* Fixed bug regarding double line italic in format "iTunes Timed Text" - thx Ajax
|
||||
* Set video position after "Reopen" - thx vmb
|
||||
* Fix for border size in vobsub export via cmd line - thx S_E_New
|
||||
* Adjust duration fixed for last subtitle - thx mariner
|
||||
* Read more variations of "S_DVBSUB" from mkv files - thx dreammday
|
||||
* + Many minor fixes from ivandrofly and xylographe
|
||||
|
||||
|
||||
|
@ -9073,9 +9073,8 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
try
|
||||
{
|
||||
var msub = sub[index];
|
||||
|
||||
DvbSubPes pes = null;
|
||||
if (msub.Data.Length > 9 && msub.Data[0] == 15 && msub.Data[1] == 16)
|
||||
if (msub.Data.Length > 9 && msub.Data[0] == 15 && msub.Data[1] >= 16 && msub.Data[1] <= 24) // sync byte + segment id
|
||||
{
|
||||
var buffer = new byte[msub.Data.Length + 3];
|
||||
Buffer.BlockCopy(msub.Data, 0, buffer, 2, msub.Data.Length);
|
||||
@ -9096,6 +9095,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
{
|
||||
pes = new DvbSubPes(0, msub.Data);
|
||||
}
|
||||
|
||||
if (pes == null && subtitle.Paragraphs.Count > 0)
|
||||
{
|
||||
var last = subtitle.Paragraphs[subtitle.Paragraphs.Count - 1];
|
||||
|
Loading…
x
Reference in New Issue
Block a user