Don't use deprecated FFMPEG codec IDs. Tries to solve #7955.

Simpler alternative to #7959.
This commit is contained in:
Henrik Rydgård 2015-09-12 10:45:03 +02:00
parent 6ea5540d9f
commit 33c39636c8

View File

@ -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;