diff options
author | Timo Rothenpieler <timo@rothenpieler.org> | 2020-05-01 23:42:56 +0200 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2020-05-02 01:33:49 +0200 |
commit | 9ce7de903882793749abc68eeb29813a19f50de5 (patch) | |
tree | 0ee94b14a8d2e225a0bbb6d32de242ee8e1c4ca7 /libavcodec/nvenc.h | |
parent | b9746fcbee8f7d73662cefbf8695f1ab47483bac (diff) |
avcodec/nvenc: refactor dts calculation logic
The old approach used some highly complex delta computation math and
output-delaying.
I do not remember what the initial reasoning behind that was, but given
that we can just offset the dts by the amount of bframes, it seems wholy
unnecessary.
This leaves open an issue with VFR content, for which some more complex
logic might be needed.
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
Diffstat (limited to 'libavcodec/nvenc.h')
-rw-r--r-- | libavcodec/nvenc.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/libavcodec/nvenc.h b/libavcodec/nvenc.h index 6bdf4741fa..7a415a4835 100644 --- a/libavcodec/nvenc.h +++ b/libavcodec/nvenc.h @@ -161,11 +161,6 @@ typedef struct NvencContext * AVCodecContext.pix_fmt when using hwaccel frames on input */ enum AVPixelFormat data_pix_fmt; - /* 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; - int support_dyn_bitrate; void *nvencoder; |