* 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.
Tento commit je obsažen v:
Jeff Jiang
2025-11-04 21:12:56 -05:00
odevzdal GitHub
rodič 60e6c585ff
revize c388518965
7 změnil soubory, kde provedl 28 přidání a 5 odebrání
+1 -1
Zobrazit soubor
@@ -316,7 +316,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) {