* rocDecode: Added several fixes to samples. (#668)

- Fixed the build error with videodecodepicfiles sample.
 - Added error handling of sample app command option combination of memory type OUT_SURFACE_MEM_NOT_MAPPED and MD5 generation.

[ROCm/rocdecode commit: c388518965]
This commit is contained in:
Jeff Jiang
2025-11-04 21:12:56 -05:00
committed by GitHub
parent 9f857d54f0
commit 8b86f61514
7 changed files with 28 additions and 5 deletions
@@ -364,7 +364,7 @@ int main(int argc, char **argv) {
}
for (int i = 0; i < n_frame_returned; i++) {
pframe = viddec->GetFrame(&pts);
if (b_generate_md5) {
if (b_generate_md5 && pframe) {
md5_generator->UpdateMd5ForFrame(pframe, surf_info);
}
if (dump_output_frames && mem_type != OUT_SURFACE_MEM_NOT_MAPPED) {