You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: MatroskaLib/MatroskaLib/Helpers/ByteHelper.cs
+2-1
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,8 @@ public static void ChangeLength(List<byte> lsBytes, int position, List<byte> lsL
57
57
58
58
// Convert new length to bytes and strip bytes
59
59
List<byte>lsNewBytes=ToBytes(ret);
60
-
if(lsNewBytes.Count!=lsLengthBytes.Count)thrownewException("New length doesn't fit into existing length element");
60
+
if(lsNewBytes.Count!=lsLengthBytes.Count)
61
+
thrownewInvalidOperationException($"New length bytes are not the same length as the old ones. Old length: {lsLengthBytes.Count}, new length: {lsNewBytes.Count}");
thrownewException("New seekposition doesn't fit into existing element");
76
+
if(lsNewBytes.Count>s.elementLength)
77
+
thrownewInvalidOperationException($"New seekPosition bytes are bigger than the old one. Trying to fit {lsNewBytes.Count} bytes into {s.elementLength} bytes");
78
+
if(lsNewBytes.Count<s.elementLength)
79
+
{
80
+
// The new seekPosition is smaller than the old one, add padding
<LabelText="You can report this error by creating an issue on GitHub, please copy and paste the below box-contained text in the issue description."></Label>
14
16
<LabelText="DISCLAIMER: The text includes basic info about your OS, tracks of the MKV file and about where the error occured in the codebase. It does not include the filename(s). By creating an issue you consent to sharing the below text publicly on the internet."></Label>
MessageBox.Show("The following files were rejected: "+rejectedFiles,MessageBoxType.Warning);
68
+
MessageBox.Show($"The following files have different tracks or the order is different than {sourceFile}: {rejectedFiles}These files cannot be processed.",
0 commit comments