[FFmpeg-cvslog] avcodec/nvenc: Don't set packet duration
Timo Rothenpieler
git at videolan.org
Sat Jun 4 13:17:14 CEST 2016
ffmpeg | branch: master | Timo Rothenpieler <timo at rothenpieler.org> | Sat Jun 4 12:20:59 2016 +0200| [7c55f5d782cec4ecb5733ec3c70014957619c5db] | committer: Timo Rothenpieler
avcodec/nvenc: Don't set packet duration
It's not expected to be set on video packets and causes issues in
ffmpeg.c.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7c55f5d782cec4ecb5733ec3c70014957619c5db
---
libavcodec/nvenc.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index 4be0405..d3115f4 100644
--- a/libavcodec/nvenc.c
+++ b/libavcodec/nvenc.c
@@ -1415,7 +1415,6 @@ static int nvenc_set_timestamp(AVCodecContext *avctx,
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 */
@@ -1616,7 +1615,6 @@ int ff_nvenc_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
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 {
More information about the ffmpeg-cvslog
mailing list