diff options
author | Timo Rothenpieler <timo@rothenpieler.org> | 2021-01-09 16:34:59 +0100 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2021-02-19 22:17:34 +0100 |
commit | 93061bc90cfaea22fff160e27532a44f3aab1fbd (patch) | |
tree | 6a01e8a45e3d081bd681e8e62371474a52d265e3 | |
parent | d08bcbffffee13b4e3663598a1d8f805a095688d (diff) | |
download | ffmpeg-93061bc90cfaea22fff160e27532a44f3aab1fbd.tar.gz |
avcodec/nvenc: fix timestamp offset ticks logic
-rw-r--r-- | libavcodec/nvenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index e269c716a4..03fdd70029 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -1829,7 +1829,7 @@ static int nvenc_set_timestamp(AVCodecContext *avctx, pkt->pts = params->outputTimeStamp; pkt->dts = timestamp_queue_dequeue(ctx->timestamp_list); - pkt->dts -= FFMAX(avctx->max_b_frames, 0) * FFMIN(avctx->ticks_per_frame, 1); + pkt->dts -= FFMAX(avctx->max_b_frames, 0) * FFMAX(avctx->ticks_per_frame, 1); return 0; } |