cellVdec: replace std::aligned_union_t with a union

This commit is contained in:
oltolm
2026-02-22 12:26:27 +01:00
committed by Elad
parent f5cf818bcc
commit 3b49420205
+6 -1
View File
@@ -1462,7 +1462,12 @@ error_code cellVdecGetPicItem(ppu_thread& ppu, u32 handle, vm::pptr<CellVdecPicI
struct all_info_t struct all_info_t
{ {
CellVdecPicItem picItem; CellVdecPicItem picItem;
std::aligned_union_t<0, CellVdecAvcInfo, CellVdecDivxInfo, CellVdecMpeg2Info> picInfo; union
{
CellVdecAvcInfo avcInfo;
CellVdecDivxInfo divxInfo;
CellVdecMpeg2Info mpeg2Info;
} picInfo;
}; };
AVFrame* frame{}; AVFrame* frame{};