Browse Source

avcodec/nvenc: fix timestamp offset ticks logic

tags/n4.3.2
Timo Rothenpieler 5 years ago
parent
commit
93061bc90c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/nvenc.c

+ 1
- 1
libavcodec/nvenc.c View File

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


Loading…
Cancel
Save