From 7ab5c5e2674e8e7ca58ea9eb8627121766c4d977 Mon Sep 17 00:00:00 2001 From: rcaridade145 Date: Fri, 19 Dec 2025 19:53:35 +0000 Subject: [PATCH] h264: Clear display buffer before allocation (#1750) --- src/Cafe/OS/libs/h264_avc/H264DecBackendAVC.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Cafe/OS/libs/h264_avc/H264DecBackendAVC.cpp b/src/Cafe/OS/libs/h264_avc/H264DecBackendAVC.cpp index 228f65a5..bf99f23d 100644 --- a/src/Cafe/OS/libs/h264_avc/H264DecBackendAVC.cpp +++ b/src/Cafe/OS/libs/h264_avc/H264DecBackendAVC.cpp @@ -376,6 +376,8 @@ namespace H264 WORD32 status = ih264d_api_function(m_codecCtx, &s_ctl_ip, &s_ctl_op); cemu_assert(!status); + //away with the old. + m_displayBuf.clear(); // allocate for (uint32 i = 0; i < s_ctl_op.u4_num_disp_bufs; i++) {