summaryrefslogtreecommitdiff
path: root/libavcodec/nvenc.h
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/nvenc.h')
-rw-r--r--libavcodec/nvenc.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/nvenc.h b/libavcodec/nvenc.h
index 8819b3ca32..32d3345414 100644
--- a/libavcodec/nvenc.h
+++ b/libavcodec/nvenc.h
@@ -112,7 +112,10 @@ typedef struct NVENCContext {
AVFifoBuffer *timestamps;
AVFifoBuffer *pending, *ready;
- int64_t last_dts;
+ /* timestamps of the first two frames, for computing the first dts
+ * when b-frames are present */
+ int64_t initial_pts[2];
+ int first_packet_output;
void *nvenc_ctx;