From 441d66a063c7fc86436ed7ff73984050434c9142 Mon Sep 17 00:00:00 2001 From: nick black Date: Fri, 8 Mar 2024 05:38:50 -0500 Subject: [PATCH] check LIBAVUTIL_VERSION_MAJOR against 59 for pkt_duration --- src/media/ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/media/ffmpeg.c b/src/media/ffmpeg.c index 92828c1b0..655f26974 100644 --- a/src/media/ffmpeg.c +++ b/src/media/ffmpeg.c @@ -41,7 +41,7 @@ typedef struct ncvisual_details { #define IMGALLOCALIGN 64 uint64_t ffmpeg_pkt_duration(const AVFrame* frame){ -#ifdef FF_API_PKT_DURATION +#if LIBAVUTIL_VERSION_MAJOR < 59 return frame->pkt_duration; #else return frame->duration;