mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 08:42:39 +00:00
avcodec/nvenc: set bitstreamRestrictionFlag when neccesary
This mimics the behaviour of libx264 for setting this flag. Fixes #11131
This commit is contained in:
parent
0cdcbab9e9
commit
d724584d68
@ -1310,6 +1310,8 @@ static av_cold int nvenc_setup_h264_config(AVCodecContext *avctx)
|
||||
avctx->profile = AV_PROFILE_H264_HIGH_444_PREDICTIVE;
|
||||
}
|
||||
|
||||
vui->bitstreamRestrictionFlag = cc->gopLength != 1 || avctx->profile < AV_PROFILE_H264_HIGH;
|
||||
|
||||
h264->chromaFormatIDC = avctx->profile == AV_PROFILE_H264_HIGH_444_PREDICTIVE ? 3 : 1;
|
||||
|
||||
h264->level = ctx->level;
|
||||
|
Loading…
Reference in New Issue
Block a user