Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package opencv for openSUSE:Factory checked in at 2025-10-02 19:19:22 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/opencv (Old) and /work/SRC/openSUSE:Factory/.opencv.new.11973 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "opencv" Thu Oct 2 19:19:22 2025 rev:109 rq:1308208 version:4.12.0 Changes: -------- --- /work/SRC/openSUSE:Factory/opencv/opencv.changes 2025-08-25 20:36:55.297133729 +0200 +++ /work/SRC/openSUSE:Factory/.opencv.new.11973/opencv.changes 2025-10-02 19:20:03.246091476 +0200 @@ -1,0 +2,5 @@ +Thu Sep 25 14:49:49 UTC 2025 - Bjørn Lie <[email protected]> + +- Add 86df531.patch: FFmpeg 8.0 support (boo#1249045). + +------------------------------------------------------------------- New: ---- 86df531.patch ----------(New B)---------- New: - Add 86df531.patch: FFmpeg 8.0 support (boo#1249045). ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ opencv.spec ++++++ --- /var/tmp/diff_new_pack.th61kq/_old 2025-10-02 19:20:04.754154630 +0200 +++ /var/tmp/diff_new_pack.th61kq/_new 2025-10-02 19:20:04.758154798 +0200 @@ -79,6 +79,8 @@ # PATCH-FIX-UPSTREAM opencv-ppc64le-power9.patch [email protected] - Fix missing vec_cvfo on POWER9 due to unavailable VSX float64 conversion # https://github.com/opencv/opencv/pull/27633 Patch1: opencv-ppc64le-power9.patch +# PATCH-FIX-UPSTREAM 86df531.patch -- FFmpeg 8.0 support. +Patch2: https://github.com/opencv/opencv/commit/86df531.patch BuildRequires: cmake BuildRequires: fdupes BuildRequires: libeigen3-devel ++++++ 86df531.patch ++++++ >From 90c444abd387ffa70b2e72a34922903a2f0f4f5a Mon Sep 17 00:00:00 2001 From: Alexander Smorkalov <[email protected]> Date: Wed, 20 Aug 2025 10:53:51 +0300 Subject: [PATCH] FFmpeg 8.0 support. --- modules/videoio/src/cap_ffmpeg_impl.hpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/modules/videoio/src/cap_ffmpeg_impl.hpp b/modules/videoio/src/cap_ffmpeg_impl.hpp index 489dbe565d3d..5780b4c11361 100644 --- a/modules/videoio/src/cap_ffmpeg_impl.hpp +++ b/modules/videoio/src/cap_ffmpeg_impl.hpp @@ -685,7 +685,10 @@ void CvCapture_FFMPEG::close() if( video_st ) { #ifdef CV_FFMPEG_CODECPAR +// avcodec_close removed in FFmpeg release 8.0 +# if (LIBAVCODEC_BUILD < CALC_FFMPEG_VERSION(62, 11, 100)) avcodec_close( context ); +# endif #endif video_st = NULL; } @@ -2005,7 +2008,18 @@ void CvCapture_FFMPEG::get_rotation_angle() rotation_angle = 0; #if LIBAVFORMAT_BUILD >= CALC_FFMPEG_VERSION(57, 68, 100) const uint8_t *data = 0; + // av_stream_get_side_data removed in FFmpeg release 8.0 +# if (LIBAVCODEC_BUILD < CALC_FFMPEG_VERSION(62, 11, 100)) data = av_stream_get_side_data(video_st, AV_PKT_DATA_DISPLAYMATRIX, NULL); +# else + AVPacketSideData* sd = video_st->codecpar->coded_side_data; + int nb_sd = video_st->codecpar->nb_coded_side_data; + if (sd && nb_sd > 0) + { + const AVPacketSideData* mtx = av_packet_side_data_get(sd, nb_sd, AV_PKT_DATA_DISPLAYMATRIX); + data = mtx->data; + } +# endif if (data) { rotation_angle = -cvRound(av_display_rotation_get((const int32_t*)data));
