It's not expected to be set on video packets and causes issues in
ffmpeg.c.
NvencContext *ctx = avctx->priv_data;
pkt->pts = params->outputTimeStamp;
- pkt->duration = params->outputDuration;
/* generate the first dts by linearly extrapolating the
* first two pts values to the past */
pic_params.encodePicFlags = 0;
pic_params.inputTimeStamp = frame->pts;
- pic_params.inputDuration = av_frame_get_pkt_duration(frame);
nvenc_codec_specific_pic_params(avctx, &pic_params);
} else {