ffmpeg: relax version check for AVFrame->duration #2828

This commit is contained in:
nick black 2025-01-02 00:29:48 -05:00
parent 544d4fccc3
commit a924cede7f
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -41,7 +41,7 @@ typedef struct ncvisual_details {
#define IMGALLOCALIGN 64
uint64_t ffmpeg_pkt_duration(const AVFrame* frame){
#if LIBAVUTIL_VERSION_MAJOR < 59
#if LIBAVUTIL_VERSION_MAJOR < 58
return frame->pkt_duration;
#else
return frame->duration;