diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-07-11 10:20:12 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-07-19 12:27:17 +0200 |
commit | ac2cda4296dbbaf2580ec3aa404bb2f3a393159c (patch) | |
tree | bce0774740815db4f5ecd7d9fb231fd870af32ad /libavcodec/cuviddec.c | |
parent | 4397f9a5a09d82846bf787295c60f1104cf7de9e (diff) |
lavc: use AVFrame.duration instead of AVFrame.pkt_duration
Diffstat (limited to 'libavcodec/cuviddec.c')
-rw-r--r-- | libavcodec/cuviddec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cuviddec.c b/libavcodec/cuviddec.c index 7dbd4c9ec1..82c40fc64e 100644 --- a/libavcodec/cuviddec.c +++ b/libavcodec/cuviddec.c @@ -624,7 +624,7 @@ static int cuvid_output_frame(AVCodecContext *avctx, AVFrame *frame) * So set pkt_pts and clear all the other pkt_ fields. */ frame->pkt_pos = -1; - frame->pkt_duration = 0; + frame->duration = 0; frame->pkt_size = -1; frame->interlaced_frame = !parsed_frame.is_deinterlacing && !parsed_frame.dispinfo.progressive_frame; |