History

avcodec/nvenc: set bitstreamRestrictionFlag when neccesary

This mimics the behaviour of libx264 for setting this flag. Fixes #11131

Timo Rothenpieler committed 2 years ago

Commit d7245841 parent 0cdcbab1 file · +2 −0Browse files

Unified · Split

libavcodec/nvenc.c+2−0
@@ -1310,6 +1310,8 @@ static av_cold int nvenc_setup_h264_config(AVCodecContext *avctx) · 1309 unmodified lines
13101310 avctx->profile = AV_PROFILE_H264_HIGH_444_PREDICTIVE;
13111311 }
13121312
1313+ vui->bitstreamRestrictionFlag = cc->gopLength != 1 || avctx->profile < AV_PROFILE_H264_HIGH;
1314+
13131315 h264->chromaFormatIDC = avctx->profile == AV_PROFILE_H264_HIGH_444_PREDICTIVE ? 3 : 1;
13141316
13151317 h264->level = ctx->level;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t