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: Source/CLI/rawcooked.1
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,9 @@ Set the name of the output file or folder to \fIvalue\fR.
67
67
.br
68
68
The default output value is opposite to the input. Expect \fI${Input}.mkv\fR if the input is a folder, or \fI${Input}.RAWcooked\fR if input is a file, such as a DPX.
69
69
.TP
70
+
.B--compute-output-hash
71
+
Compute the hash of the output file while checking it.
if ((Actions[Action_Decode] || Actions[Action_Check]) && Actions[Action_ComputeOutputHash])
344
+
OutputHash = newoutput_hash(Buffer.Data());
310
345
311
346
// Progress indicator
312
347
Cluster_Timestamp = 0;
@@ -356,8 +391,18 @@ void matroska::ParseBuffer()
356
391
}
357
392
}
358
393
394
+
auto NeedRemap = Buffer_Offset - Buffer_Offset_LowerLimit >= 0x100000; // TODO: when multi-threaded frame decoding is implemented, we need to check that all thread don't need anymore memory below this value
395
+
396
+
// Compute MD5 of the whole file
397
+
if (OutputHash && !OutputHash->Disabled)
398
+
{
399
+
auto Hash_Size = Buffer_Offset - OutputHash->Offset;
400
+
if (NeedRemap || Hash_Size >= 0x100000)
401
+
OutputHash->Update(Hash_Size);
402
+
}
403
+
359
404
// Check if we can indicate the system that we'll not need anymore memory below this value, without indicating it too much
360
-
if (Buffer_Offset > Buffer_Offset_LowerLimit + 1024 * 1024 && Buffer_Offset < Buffer.Size()) // TODO: when multi-threaded frame decoding is implemented, we need to check that all thread don't need anymore memory below this value
0 commit comments