mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-24 14:00:03 +00:00
Don't use deprecated FFMPEG codec IDs. Tries to solve #7955.
Simpler alternative to #7959.
This commit is contained in:
parent
6ea5540d9f
commit
33c39636c8
@ -768,10 +768,10 @@ static bool InitPmp(MpegContext * ctx){
|
||||
// GE_CMODE_16BIT_ABGR5551 <--> AV_PIX_FMT_BGR555LE;
|
||||
// GE_CMODE_16BIT_ABGR4444 <--> AV_PIX_FMT_BGR444LE;
|
||||
// GE_CMODE_32BIT_ABGR8888 <--> AV_PIX_FMT_RGBA;
|
||||
pmp_want_pix_fmt = PIX_FMT_RGBA;
|
||||
pmp_want_pix_fmt = AV_PIX_FMT_RGBA;
|
||||
|
||||
// Create H264 video codec
|
||||
AVCodec * pmp_Codec = avcodec_find_decoder(CODEC_ID_H264);
|
||||
AVCodec * pmp_Codec = avcodec_find_decoder(AV_CODEC_ID_H264);
|
||||
if (pmp_Codec == NULL){
|
||||
ERROR_LOG(ME, "Can not find H264 codec, please update ffmpeg");
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user