Fixed more SingStar previews, this time for v05.00

This commit is contained in:
Florin9doi 2026-01-11 17:11:51 +02:00 committed by Megamouse
parent 7e9e0f56fb
commit d584575984
3 changed files with 4 additions and 2 deletions

View file

@ -780,7 +780,7 @@ static error_code vdecQueryAttr(s32 type, u32 profile, u32 spec_addr /* may be 0
if (sinfo)
{
if (sinfo->thisSize != sizeof(CellVdecDivxSpecificInfo2))
if (sinfo->thisSize != sizeof(CellVdecDivxSpecificInfo) && sinfo->thisSize != sizeof(CellVdecDivxSpecificInfo2))
{
return CELL_VDEC_ERROR_ARG;
}
@ -790,7 +790,7 @@ static error_code vdecQueryAttr(s32 type, u32 profile, u32 spec_addr /* may be 0
//const u32 maxDecH = sinfo ? +sinfo->maxDecodedFrameHeight : 0;
//const u32 maxDecW = sinfo ? +sinfo->maxDecodedFrameWidth : 0;
u32 nrOfBuf = sinfo ? +sinfo->numberOfDecodedFrameBuffer : 0;
u32 nrOfBuf = sinfo && sinfo->thisSize == sizeof(CellVdecDivxSpecificInfo2) ? +sinfo->numberOfDecodedFrameBuffer : 0;
if (nrOfBuf == 0)
{

View file

@ -4,6 +4,7 @@
#include "flow_widget_item.h"
#include "flow_layout.h"
#include <set>
#include <QWidget>
#include <QScrollArea>
#include <QPaintEvent>

View file

@ -5,6 +5,7 @@
#include "Emu/GameInfo.h"
#include <set>
#include <QPixmap>
/* Having the icons associated with the game info simplifies logic internally */