h264: Clear display buffer before allocation (#1750)

This commit is contained in:
rcaridade145 2025-12-19 19:53:35 +00:00 committed by GitHub
parent 7dd0b90f53
commit 7ab5c5e267
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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++)
{