From d64d6326f814dccaa75bc3761ab04b46f1e6d775 Mon Sep 17 00:00:00 2001 From: Aryan Salmanpour Date: Thu, 1 May 2025 16:03:38 -0400 Subject: [PATCH] VideoDecodePerf sample: use a display delay of 1 by default (#578) [ROCm/rocdecode commit: cf85e6c46cbf43a703349a7d7df31e6f3bf0f909] --- .../rocdecode/samples/videoDecodePerf/videodecodeperf.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/rocdecode/samples/videoDecodePerf/videodecodeperf.cpp b/projects/rocdecode/samples/videoDecodePerf/videodecodeperf.cpp index 1668b48973..c449abff33 100644 --- a/projects/rocdecode/samples/videoDecodePerf/videodecodeperf.cpp +++ b/projects/rocdecode/samples/videoDecodePerf/videodecodeperf.cpp @@ -79,7 +79,7 @@ void ShowHelpAndExit(const char *option = NULL) { << "-t Number of threads (>= 1) - optional; default: 1" << std::endl << "-d Device ID (>= 0) - optional; default: 0" << std::endl << "-z 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 << "-m Memory type (integer values between 0 to 3: specifies where to store the decoded output:" << std::endl << " 0 = decoded output will be in internal interopped memory," << std::endl << " 1 = decoded output will be copied to a separate device memory," << std::endl @@ -97,7 +97,7 @@ int main(int argc, char **argv) { OutputSurfaceMemoryType mem_type = OUT_SURFACE_MEM_NOT_MAPPED; // set to decode only for performance bool b_force_zero_latency = false; uint32_t max_num_frames = 0; // max number of frames to be decoded. default value is 0, meaning decode the entire stream - int disp_delay = 0; + int disp_delay = 1; // Parse command-line arguments if(argc <= 1) {