From c6635a9de563a1d4ce960657883bbc57f489bea7 Mon Sep 17 00:00:00 2001 From: Aryan Salmanpour Date: Fri, 25 Oct 2024 14:20:33 -0400 Subject: [PATCH] VideoDecode samples - Set the default display_delay to 1 (#441) [ROCm/rocdecode commit: 81e341b786a939af9a0b8f13831640aa5fe0714a] --- projects/rocdecode/samples/videoDecode/README.md | 2 +- projects/rocdecode/samples/videoDecode/videodecode.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/rocdecode/samples/videoDecode/README.md b/projects/rocdecode/samples/videoDecode/README.md index afa58ce907..ef80b48ab3 100644 --- a/projects/rocdecode/samples/videoDecode/README.md +++ b/projects/rocdecode/samples/videoDecode/README.md @@ -32,7 +32,7 @@ make -j -d -f -z - -disp_delay + -disp_delay -sei -md5 -md5_check MD5_File_Path diff --git a/projects/rocdecode/samples/videoDecode/videodecode.cpp b/projects/rocdecode/samples/videoDecode/videodecode.cpp index 91dce29171..1f6d65b12f 100644 --- a/projects/rocdecode/samples/videoDecode/videodecode.cpp +++ b/projects/rocdecode/samples/videoDecode/videodecode.cpp @@ -47,7 +47,7 @@ void ShowHelpAndExit(const char *option = NULL) { << "-d GPU device ID (0 for the first device, 1 for the second, etc.); optional; default: 0" << std::endl << "-f Number of decoded frames - specify the number of pictures to be decoded; optional" << std::endl << "-z force_zero_latency (force_zero_latency, Decoded frames will be flushed out for display immediately); optional;" << std::endl - << "-disp_delay -specify the number of frames to be delayed for display; optional;" << std::endl + << "-disp_delay -specify the number of frames to be delayed for display; optional; default: 1" << std::endl << "-sei extract SEI messages; optional;" << std::endl << "-md5 generate MD5 message digest on the decoded YUV image sequence; optional;" << std::endl << "-md5_check MD5 File Path - generate MD5 message digest on the decoded YUV image sequence and compare to the reference MD5 string in a file; optional;" << std::endl @@ -67,7 +67,7 @@ int main(int argc, char **argv) { std::fstream ref_md5_file; int dump_output_frames = 0; int device_id = 0; - int disp_delay = 0; + int disp_delay = 1; bool b_force_zero_latency = false; // false by default: enabling this option might affect decoding performance bool b_extract_sei_messages = false; bool b_generate_md5 = false;