git: dd93bc5d6c93 - main - multimedia/wf-recorder: Fix build with FFmpeg 8

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Fri, 29 Aug 2025 13:49:06 UTC
The branch main has been updated by eduardo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=dd93bc5d6c93dd78270a4b5d609d237e01a1ea7a

commit dd93bc5d6c93dd78270a4b5d609d237e01a1ea7a
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2025-08-29 13:44:41 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2025-08-29 13:48:18 +0000

    multimedia/wf-recorder: Fix build with FFmpeg 8
    
    Apply upstream patch to fix build.
    
    PR:             289036
    Approved by:    portmgr (build fix blanket)
---
 multimedia/wf-recorder/files/patch-fix-ffmpeg8 | 27 ++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/multimedia/wf-recorder/files/patch-fix-ffmpeg8 b/multimedia/wf-recorder/files/patch-fix-ffmpeg8
new file mode 100644
index 000000000000..68bf8d5643ce
--- /dev/null
+++ b/multimedia/wf-recorder/files/patch-fix-ffmpeg8
@@ -0,0 +1,27 @@
+From 560bb92d3ddaeb31d7af77d22d01b0050b45bebe Mon Sep 17 00:00:00 2001
+From: Scott Moreau <oreaus@gmail.com>
+Date: Tue, 8 Oct 2024 12:56:55 -0600
+Subject: [PATCH] frame-writer: Track ffmpeg changes (#279)
+
+* frame-writer: Track ffmpeg changes
+
+The frame_rate variable has been made private API.
+
+* frame-writer: Remove comment
+---
+ src/frame-writer.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git src/frame-writer.cpp src/frame-writer.cpp
+index 2a5ba17..b8abe51 100644
+--- src/frame-writer.cpp
++++ src/frame-writer.cpp
+@@ -371,7 +371,7 @@ void FrameWriter::init_video_filters(const AVCodec *codec)
+     this->videoCodecCtx->height = filter_output->h;
+     this->videoCodecCtx->pix_fmt = (AVPixelFormat)filter_output->format;
+     this->videoCodecCtx->time_base = filter_output->time_base;
+-    this->videoCodecCtx->framerate = filter_output->frame_rate; // can be 1/0 if unknown
++    this->videoCodecCtx->framerate = AVRational{1,0};
+     this->videoCodecCtx->sample_aspect_ratio = filter_output->sample_aspect_ratio;
+ 
+     this->hw_frame_context = av_buffersink_get_hw_frames_ctx(