diff options
author | Timo Rothenpieler <timo@rothenpieler.org> | 2024-08-03 20:04:31 +0200 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2024-08-03 20:04:31 +0200 |
commit | 9a2171318dfcd0812c444c6817c96e2bc8fed0db (patch) | |
tree | e3e73fe8c146ac9c1395b11439defbe6a9211bd3 /libavcodec | |
parent | 4a56b5f3d81ff154af391e234596933fe3aed5ef (diff) | |
download | ffmpeg-9a2171318dfcd0812c444c6817c96e2bc8fed0db.tar.gz |
avcodec/nvenc: fix signedness of timing fields
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/nvenc.c | 2 | ||||
-rw-r--r-- | libavcodec/nvenc.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index 34448462f0..2cce478be0 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -2361,7 +2361,7 @@ static int nvenc_set_timestamp(AVCodecContext *avctx, AVPacket *pkt) { NvencContext *ctx = avctx->priv_data; - int delay; + unsigned int delay; int64_t delay_time; pkt->pts = params->outputTimeStamp; diff --git a/libavcodec/nvenc.h b/libavcodec/nvenc.h index dc7fe41951..0130b99369 100644 --- a/libavcodec/nvenc.h +++ b/libavcodec/nvenc.h @@ -207,7 +207,7 @@ typedef struct NvencContext AVFifo *output_surface_ready_queue; AVFifo *timestamp_list; // This is for DTS calculating, reset after flush - int64_t output_frame_num; + uint64_t output_frame_num; int64_t initial_delay_time; NV_ENC_SEI_PAYLOAD *sei_data; |