Bug#1080949: Fix compilation of openboard against ffmpeg 7

Nicola Ferralis feranick at hotmail.com
Thu Sep 5 16:58:55 BST 2024


Package: openboard
Version: 1.6.4+dfsg-1


The source code of openboardis incompatible with the current version of FFmpeg 7, leading to a crash when trying to compile against it.
The attached patch fixes the issues, allowing successful compilation.

I am using Ubuntu 24.04 and Debian Unstable.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-edu-pkg-team/attachments/20240905/a6c4f662/attachment.htm>
-------------- next part --------------
diff -Nru openboard-1.6.4.orig/src/podcast/ffmpeg/UBFFmpegVideoEncoder.cpp openboard-1.6.4/src/podcast/ffmpeg/UBFFmpegVideoEncoder.cpp
--- openboard-1.6.4.orig/src/podcast/ffmpeg/UBFFmpegVideoEncoder.cpp	2022-10-04 05:51:41
+++ openboard-1.6.4/src/podcast/ffmpeg/UBFFmpegVideoEncoder.cpp	2024-09-05 11:03:47
@@ -443,7 +443,7 @@
         }
 
         // Buffer for resampled/converted audio
-        mAudioOutBuffer = av_audio_fifo_alloc(c->sample_fmt, c->channels, c->frame_size);
+        mAudioOutBuffer = av_audio_fifo_alloc(c->sample_fmt, c->ch_layout.nb_channels, c->frame_size);
     }
 
 
@@ -563,7 +563,7 @@
     int outSamplesLineSize;
 
     ret = av_samples_alloc_array_and_samples(&outSamples, &outSamplesLineSize,
-                                             codecContext->channels, outSamplesCount,
+                                             codecContext->ch_layout.nb_channels, outSamplesCount,
                                              codecContext->sample_fmt, 0);
     if (ret < 0) {
         qWarning() << "Could not allocate audio samples" << avErrorToQString(ret);


More information about the Debian-edu-pkg-team mailing list