Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2016-05-31 19:59:35 +0300
committerTimo Rothenpieler <timo@rothenpieler.org>2016-05-31 19:59:37 +0300
commite5babccfbcd83559247d28e215440a0e74060425 (patch)
treee0ab37978d2ad338e1f9b8a5d30ffd9707b6f0d3 /libavcodec/nvenc.h
parent69c25c0ad7e4b6802ed7b6c3ff0a5a45bf8f8492 (diff)
avcodec/nvenc: Refactor timestamp generation logic
Directly adapted from libav
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 7abaf33756..961cbc7e64 100644
--- a/libavcodec/nvenc.h
+++ b/libavcodec/nvenc.h
@@ -157,7 +157,10 @@ typedef struct NvencContext
* AVCodecContext.pix_fmt when using hwaccel frames on input */
enum AVPixelFormat data_pix_fmt;
- 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 *nvencoder;