File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -882,6 +882,10 @@ static av_cold int nvenc_setup_h264_config(AVCodecContext *avctx)
882882 h264 -> outputPictureTimingSEI = 1 ;
883883 }
884884
885+ if (avctx -> flags & AV_CODEC_FLAG_INTERLACED_DCT ) {
886+ h264 -> outputPictureTimingSEI = 1 ;
887+ }
888+
885889 if (cc -> rcParams .rateControlMode == NV_ENC_PARAMS_RC_CBR_LOWDELAY_HQ ||
886890 cc -> rcParams .rateControlMode == NV_ENC_PARAMS_RC_CBR_HQ ||
887891 cc -> rcParams .rateControlMode == NV_ENC_PARAMS_RC_VBR_HQ ) {
@@ -969,6 +973,10 @@ static av_cold int nvenc_setup_hevc_config(AVCodecContext *avctx)
969973 hevc -> outputPictureTimingSEI = 1 ;
970974 }
971975
976+ if (avctx -> flags & AV_CODEC_FLAG_INTERLACED_DCT ) {
977+ hevc -> outputPictureTimingSEI = 1 ;
978+ }
979+
972980 switch (ctx -> profile ) {
973981 case NV_ENC_HEVC_PROFILE_MAIN :
974982 cc -> profileGUID = NV_ENC_HEVC_PROFILE_MAIN_GUID ;
You can’t perform that action at this time.
0 commit comments