aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mfenc.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-07-11 10:20:12 +0200
committerAnton Khirnov <anton@khirnov.net>2022-07-19 12:27:17 +0200
commitac2cda4296dbbaf2580ec3aa404bb2f3a393159c (patch)
treebce0774740815db4f5ecd7d9fb231fd870af32ad /libavcodec/mfenc.c
parent4397f9a5a09d82846bf787295c60f1104cf7de9e (diff)
downloadffmpeg-ac2cda4296dbbaf2580ec3aa404bb2f3a393159c.tar.gz
lavc: use AVFrame.duration instead of AVFrame.pkt_duration
Diffstat (limited to 'libavcodec/mfenc.c')
-rw-r--r--libavcodec/mfenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mfenc.c b/libavcodec/mfenc.c
index a6fa6ffa25..d5c241d169 100644
--- a/libavcodec/mfenc.c
+++ b/libavcodec/mfenc.c
@@ -344,7 +344,7 @@ static IMFSample *mf_v_avframe_to_sample(AVCodecContext *avctx, const AVFrame *f
return NULL;
}
- IMFSample_SetSampleDuration(sample, mf_to_mf_time(avctx, frame->pkt_duration));
+ IMFSample_SetSampleDuration(sample, mf_to_mf_time(avctx, frame->duration));
return sample;
}