mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/nvenc: fix timestamp offset ticks logic
This commit is contained in:
parent
42ee3898c8
commit
7a2d94cf1a
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue