History

avcodec/nvenc: fix signedness of timing fields

Timo Rothenpieler committed 2 years ago

Commit 9a217131 parent 4a56b5f2 files · +2 −2Browse files

Unified · Split

2 files
  1. libavcodec/nvenc.c +1 −1
  2. libavcodec/nvenc.h +1 −1
libavcodec/nvenc.c+1−1
@@ -2361,7 +2361,7 @@ static int nvenc_set_timestamp(AVCodecContext *avctx, · 2360 unmodified lines
23612361 AVPacket *pkt)
23622362 {
23632363 NvencContext *ctx = avctx->priv_data;
2364− int delay;
2364+ unsigned int delay;
23652365 int64_t delay_time;
23662366
23672367 pkt->pts = params->outputTimeStamp;
libavcodec/nvenc.h+1−1
@@ -207,7 +207,7 @@ typedef struct NvencContext · 206 unmodified lines
207207 AVFifo *output_surface_ready_queue;
208208 AVFifo *timestamp_list;
209209 // This is for DTS calculating, reset after flush
210− int64_t output_frame_num;
210+ uint64_t output_frame_num;
211211 int64_t initial_delay_time;
212212
213213 NV_ENC_SEI_PAYLOAD *sei_data;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t