diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-07-11 10:31:47 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-07-19 12:27:17 +0200 |
commit | 357ba45a5ca3864b0eba07747ab6ea1614f2646b (patch) | |
tree | bfc0cb60694b7e44535d29aa21413f506ad8b149 /libavfilter/vf_deshake_opencl.c | |
parent | ac2cda4296dbbaf2580ec3aa404bb2f3a393159c (diff) | |
download | ffmpeg-357ba45a5ca3864b0eba07747ab6ea1614f2646b.tar.gz |
lavfi: use AVFrame.duration instead of AVFrame.pkt_duration
Diffstat (limited to 'libavfilter/vf_deshake_opencl.c')
-rw-r--r-- | libavfilter/vf_deshake_opencl.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavfilter/vf_deshake_opencl.c b/libavfilter/vf_deshake_opencl.c index c2b5bef897..d488da7fa0 100644 --- a/libavfilter/vf_deshake_opencl.c +++ b/libavfilter/vf_deshake_opencl.c @@ -1413,8 +1413,15 @@ static int filter_frame(AVFilterLink *link, AVFrame *input_frame) &debug_matches, 1); } +#if FF_API_PKT_DURATION +FF_DISABLE_DEPRECATION_WARNINGS if (input_frame->pkt_duration) { duration = input_frame->pkt_duration; + } else +FF_ENABLE_DEPRECATION_WARNINGS +#endif + if (input_frame->duration) { + duration = input_frame->duration; } else { duration = av_rescale_q(1, av_inv_q(outlink->frame_rate), outlink->time_base); } |