mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-19 05:49:09 +02:00
avcodec/videotoolboxenc: Set profile (main/main10) on HEVC encode
Signed-off-by: Harry Mallon <harry.mallon@codex.online> Signed-off-by: Rick Kern <kernrj@gmail.com>
This commit is contained in:
parent
ddf2ba5497
commit
80384a6ec3
@ -1114,15 +1114,12 @@ static int vtenc_create_encoder(AVCodecContext *avctx,
|
||||
}
|
||||
}
|
||||
|
||||
if (vtctx->codec_id == AV_CODEC_ID_H264) {
|
||||
// kVTCompressionPropertyKey_ProfileLevel is not available for HEVC
|
||||
if (profile_level) {
|
||||
status = VTSessionSetProperty(vtctx->session,
|
||||
kVTCompressionPropertyKey_ProfileLevel,
|
||||
profile_level);
|
||||
if (status) {
|
||||
av_log(avctx, AV_LOG_ERROR, "Error setting profile/level property: %d. Output will be encoded using a supported profile/level combination.\n", status);
|
||||
}
|
||||
if (profile_level) {
|
||||
status = VTSessionSetProperty(vtctx->session,
|
||||
kVTCompressionPropertyKey_ProfileLevel,
|
||||
profile_level);
|
||||
if (status) {
|
||||
av_log(avctx, AV_LOG_ERROR, "Error setting profile/level property: %d. Output will be encoded using a supported profile/level combination.\n", status);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user