Fixed #8686: Update h264 to use new FFMPEG API
This commit is contained in:
parent
3a8dce07ea
commit
aa2cb9aa5f
@ -239,8 +239,10 @@ static BOOL tsmf_ffmpeg_init_stream(ITSMFDecoder* decoder, const TS_AM_MEDIA_TYP
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(59, 18, 100)
|
||||||
if (mdecoder->codec->capabilities & AV_CODEC_CAP_TRUNCATED)
|
if (mdecoder->codec->capabilities & AV_CODEC_CAP_TRUNCATED)
|
||||||
mdecoder->codec_context->flags |= AV_CODEC_FLAG_TRUNCATED;
|
mdecoder->codec_context->flags |= AV_CODEC_FLAG_TRUNCATED;
|
||||||
|
#endif
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
@ -615,10 +615,12 @@ static BOOL libavcodec_init(H264_CONTEXT* h264)
|
|||||||
goto EXCEPTION;
|
goto EXCEPTION;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(59, 18, 100)
|
||||||
if (sys->codecDecoder->capabilities & AV_CODEC_CAP_TRUNCATED)
|
if (sys->codecDecoder->capabilities & AV_CODEC_CAP_TRUNCATED)
|
||||||
{
|
{
|
||||||
sys->codecDecoderContext->flags |= AV_CODEC_FLAG_TRUNCATED;
|
sys->codecDecoderContext->flags |= AV_CODEC_FLAG_TRUNCATED;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef WITH_VAAPI
|
#ifdef WITH_VAAPI
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user