git: 07de51858541 - main - graphics/timg: Fix build with ffmpeg 8

From: Zsolt Udvari <uzsolt_at_FreeBSD.org>
Date: Mon, 01 Sep 2025 12:55:35 UTC
The branch main has been updated by uzsolt:

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

commit 07de51858541882d3fe7d2665062880fa24d4925
Author:     Zsolt Udvari <uzsolt@FreeBSD.org>
AuthorDate: 2025-09-01 12:52:45 +0000
Commit:     Zsolt Udvari <uzsolt@FreeBSD.org>
CommitDate: 2025-09-01 12:55:20 +0000

    graphics/timg: Fix build with ffmpeg 8
    
    Taken from https://github.com/hzeller/timg/commit/158e46
    
    PR:             289044
---
 graphics/timg/files/patch-src_video-source.cc | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/graphics/timg/files/patch-src_video-source.cc b/graphics/timg/files/patch-src_video-source.cc
new file mode 100644
index 000000000000..2f1f337245e0
--- /dev/null
+++ b/graphics/timg/files/patch-src_video-source.cc
@@ -0,0 +1,10 @@
+--- src/video-source.cc.orig	2025-09-01 04:23:46 UTC
++++ src/video-source.cc
+@@ -111,7 +111,6 @@ VideoSource::~VideoSource() {
+ 
+ VideoSource::~VideoSource() {
+     sws_freeContext(sws_context_);
+-    avcodec_close(codec_context_);
+     avcodec_free_context(&codec_context_);
+     avformat_close_input(&format_context_);
+     delete terminal_fb_;