mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-26 17:06:51 +00:00
try reinterpret_cast
This commit is contained in:
parent
1f297d82ac
commit
44ef7f7180
@ -818,14 +818,14 @@ bool decodePmpVideo(PSPPointer<SceMpegRingBuffer> ringbuffer, MpegContext * ctx)
|
||||
// the current video is pmp iff pmp_videoSource is a valide addresse
|
||||
if (Memory::IsValidAddress(pmp_videoSource)){
|
||||
// We should initialize pmp codec for each pmp context
|
||||
if (isContextExist((int)ctx) == false){
|
||||
if (isContextExist(reinterpret_cast<int>(ctx)) == false){
|
||||
auto ret = InitPmp(ctx);
|
||||
if (!ret){
|
||||
ERROR_LOG(ME, "Pmp video initialization failed");
|
||||
return false;
|
||||
}
|
||||
// add the initialized context into ContextList
|
||||
pmp_ContextList.push_front((u32)ctx);
|
||||
pmp_ContextList.push_front(reinterpret_cast<int>(ctx));
|
||||
}
|
||||
|
||||
ringbuffer->packetsRead = pmp_nBlocks;
|
||||
|
Loading…
x
Reference in New Issue
Block a user