Skip to content

Commit

Permalink
Don't use deprecated FFMPEG codec IDs. Tries to solve hrydgard#7955.
Browse files Browse the repository at this point in the history
Simpler alternative to hrydgard#7959.
  • Loading branch information
hrydgard committed Sep 12, 2015
1 parent 6ea5540 commit 33c3963
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Core/HLE/sceMpeg.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 33c3963

Please sign in to comment.