ffmpeg | branch: release/4.3 | Timo Rothenpieler <[email protected]> | Sat 
Jan  9 16:34:59 2021 +0100| [93061bc90cfaea22fff160e27532a44f3aab1fbd] | 
committer: Timo Rothenpieler

avcodec/nvenc: fix timestamp offset ticks logic

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=93061bc90cfaea22fff160e27532a44f3aab1fbd
---

 libavcodec/nvenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 }

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to