From 3da7e20b863462c8fb20f551a97a4866c36b24ab Mon Sep 17 00:00:00 2001 From: Lakshmi Kumar Date: Mon, 18 Nov 2024 12:45:56 -0800 Subject: [PATCH] bug fix for batch sample (#456) --- samples/videoDecodeBatch/videodecodebatch.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/samples/videoDecodeBatch/videodecodebatch.cpp b/samples/videoDecodeBatch/videodecodebatch.cpp index 115994f92d..f2f699b82c 100644 --- a/samples/videoDecodeBatch/videodecodebatch.cpp +++ b/samples/videoDecodeBatch/videodecodebatch.cpp @@ -435,6 +435,7 @@ int main(int argc, char **argv) { } if (!v_dec_info[thread_idx]->viddec->CodecSupported(v_dec_info[thread_idx]->dec_device_id, v_dec_info[thread_idx]->rocdec_codec_id, v_dec_info[thread_idx]->bit_depth)) { std::cerr << "Codec not supported on GPU, skipping this file!" << std::endl; + v_dec_info[thread_idx]->decoding_complete = true; continue; } thread_pool.ExecuteJob(std::bind(DecProc, v_dec_info[thread_idx]->viddec.get(), v_demuxer[j].get(), &v_frame[j], &v_fps[j], std::ref(v_dec_info[thread_idx]->decoding_complete), b_dump_output_frames, output_file_names[j], mem_type));