Fixed the MD5 calculation error on some streams when both decoded output dumping and MD5 generation are on. (#607)

* * Fixed the MD5 calculation error on some streams when both decoded output dumping and MD5 generation are on.
 - The issue is with the final flushing of the remaining frames at the end of stream, where MD5 update is skipped when output dumping is on.

* * Minor format changes.

---------

Co-authored-by: Aryan Salmanpour <aryan.salmanpour@amd.com>
这个提交包含在:
jeffqjiangNew和Aryan Salmanpour 编写, GitHub 于 2025-06-30 10:24:05 -04:00 提交
1 父节点 23c17cc150
当前提交 aad9c248bd
7 个文件已更改
+40 -37

没有与搜索条件相匹配的文件

@@ -317,10 +317,10 @@ int main(int argc, char **argv) {
reconfig_params.p_fn_reconfigure_flush = ReconfigureFlushCallback;
if (!b_dump_output_frames) {
reconfig_user_struct.b_dump_frames_to_file = false;
reconfig_params.reconfig_flush_mode = RECONFIG_FLUSH_MODE_DUMP_TO_FILE;
reconfig_params.reconfig_flush_mode = RECONFIG_FLUSH_MODE_NONE;
} else {
reconfig_user_struct.b_dump_frames_to_file = true;
reconfig_params.reconfig_flush_mode = RECONFIG_FLUSH_MODE_NONE;
reconfig_params.reconfig_flush_mode = RECONFIG_FLUSH_MODE_DUMP_TO_FILE;
}
reconfig_params.p_reconfig_user_struct = &reconfig_user_struct;