diff options
author | Timo Rothenpieler <timo@rothenpieler.org> | 2021-01-09 16:34:59 +0100 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2021-01-09 16:34:59 +0100 |
commit | 7a2d94cf1ade02829b36f9ebc8d6bb2e6e126343 (patch) | |
tree | a4a2c105b11a701689cb79c8a3aba71cf03d7faf | |
parent | 42ee3898c8cfc56b70a68cd3d285953e5802444f (diff) | |
download | ffmpeg-7a2d94cf1ade02829b36f9ebc8d6bb2e6e126343.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 1c06b6af27..0830db714c 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -1921,7 +1921,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; } |