Package: webcamoid
Version: 9.1.1-1
The source code of Webcamoid is 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.
diff -Nru
webcamoid-9.1.1.orig/libAvKys/Plugins/MultiSink/src/ffmpeg/src/mediawriterffmpeg.cpp
webcamoid-9.1.1/libAvKys/Plugins/MultiSink/src/ffmpeg/src/mediawriterffmpeg.cpp
---
webcamoid-9.1.1.orig/libAvKys/Plugins/MultiSink/src/ffmpeg/src/mediawriterffmpeg.cpp
2023-06-14 10:01:54
+++
webcamoid-9.1.1/libAvKys/Plugins/MultiSink/src/ffmpeg/src/mediawriterffmpeg.cpp
2024-09-04 15:00:21
@@ -220,7 +220,7 @@
{AV_OPT_TYPE_VIDEO_RATE , "video_rate" },
{AV_OPT_TYPE_DURATION , "duration" },
{AV_OPT_TYPE_COLOR , "color" },
- {AV_OPT_TYPE_CHANNEL_LAYOUT, "channel_layout"},
+ {AV_OPT_TYPE_CHLAYOUT, "channel_layout"},
{AV_OPT_TYPE_BOOL , "boolean" },
{AVOptionType(0) , "" },
};
@@ -757,7 +757,7 @@
case AV_OPT_TYPE_PIXEL_FMT:
case AV_OPT_TYPE_SAMPLE_FMT:
case AV_OPT_TYPE_DURATION:
- case AV_OPT_TYPE_CHANNEL_LAYOUT:
+ case AV_OPT_TYPE_CHLAYOUT:
case AV_OPT_TYPE_BOOL:
value = qint64(option->default_val.i64);
step = 1;