From 0980326d05831fa3d40fc6c87ed07450bf0fded5 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 10 Sep 2024 16:44:20 -0400 Subject: [PATCH] Handle another duration deprecation --- src/zm_videostore.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/zm_videostore.cpp b/src/zm_videostore.cpp index 2985e246f..6bda52bd4 100644 --- a/src/zm_videostore.cpp +++ b/src/zm_videostore.cpp @@ -1244,7 +1244,9 @@ int VideoStore::writeVideoFramePacket(const std::shared_ptr zm_packet) // Do this to allow the encoder to choose whether to use I/P/B frame //zm_packet->out_frame->pict_type = AV_PICTURE_TYPE_NONE; //zm_packet->out_frame->key_frame = zm_packet->keyframe; -#if LIBAVCODEC_VERSION_CHECK(57, 64, 0, 64, 0) +#if LIBAVCODEC_VERSION_CHECK(60, 3, 0, 3, 0) + frame->duration +#elif LIBAVCODEC_VERSION_CHECK(57, 64, 0, 64, 0) frame->pkt_duration = 0; #endif