File fix-ftbfs-ffmpeg7.patch of Package deepin-movie
--- deepin-movie-reborn-6.5.14/src/libdmr/playlist_model.cpp 2025-05-13 14:21:58.000000000 +0800
+++ deepin-movie-reborn-6.5.14-new/src/libdmr/playlist_model.cpp 2025-05-24 16:42:53.176975759 +0800
@@ -335,7 +335,11 @@
mi.aCodeID = audio_dec_ctx->codec_id;
mi.aCodeRate = audio_dec_ctx->bit_rate;
mi.aDigit = audio_dec_ctx->format;
+#if LIBAVCODEC_VERSION_MAJOR < 61
mi.channels = audio_dec_ctx->channels;
+#else
+ mi.channels = audio_dec_ctx->ch_layout.nb_channels;
+#endif
mi.sampling = audio_dec_ctx->sample_rate;
#ifdef USE_TEST
@@ -1704,7 +1708,11 @@
mi.aCodeID = dec_ctx->codec_id;
mi.aCodeRate = dec_ctx->bit_rate;
mi.aDigit = dec_ctx->format;
+#if LIBAVCODEC_VERSION_MAJOR < 61
mi.channels = dec_ctx->channels;
+#else
+ mi.channels = dec_ctx->ch_layout.nb_channels;
+#endif
mi.sampling = dec_ctx->sample_rate;
AVDictionaryEntry *tag = NULL;