Cleanup: Deprecation warning in the FFmpeg #108451

Merged
Sergey Sharybin merged 1 commits from Sergey/blender:ffmpeg into main 2023-05-31 16:41:54 +02:00

1 Commits

Author SHA1 Message Date
Sergey Sharybin 8ceb119b4a Cleanup: Deprecation warning in the FFmpeg
buildbot/vexp-code-patch-coordinator Build done. Details
Since avuitl 57.30.100 the pkt_duration is deprecated, and
the duration is to be used instead.

The units seems to match, and also from the avcodec decoder.c
the `frame->pkt_duration = frame->duration;` so does not seem
we need to do any conversion.

The change in FFmpeg is from 2022, which is a bit recent, so
the access to the duration is hidden behind a compatibility
API.
2023-05-31 12:01:44 +02:00