I had the same issue as mentioned here:
"with the latest version (7.1-5) I get the following build error:
libavdevice/v4l2.c: In function ‘device_open’:
libavdevice/v4l2.c:141:17: error: assignment to ‘int (*)(int, long unsigned int, ...)’ from incompatible pointer type ‘int (*)(int, int, ...)’ [-Wincompatible-pointer-types]
141 | s->ioctl_f = prefix ## ioctl;
does anybody know how to solve this?"
I had some issues creating a patch file (but that's on me) so I manually changed the offending file
steps to manually fix
yay -G ffmpeg-obs
cd ffmpeg-obs
sed -i 's/s->ioctl_f = prefix ## ioctl;/s->ioctl_f = (int (*)(int, unsigned long, ...))prefix ## ioctl;/' libavdevice/v4l2.c
Or manually changing line 141 such as:
--- a/libavdevice/v4l2.c
+++ b/libavdevice/v4l2.c
@@ -138,7 +138,7 @@
s->dup_f = prefix ## dup; \
s->ioctl_f = prefix ## ioctl; \
s->read_f = prefix ## read; \
- s->munmap_f = prefix ## munmap; \
+ s->ioctl_f = (int (*)(int, unsigned long, ...))prefix ## ioctl; \
s->munmap_f = prefix ## munmap; \
} while (0)
Pinned Comments
tytan652 commented on 2022-07-23 05:48 (UTC) (edited on 2024-06-21 13:15 (UTC) by tytan652)
Please, this package follow Arch Linux
ffmpeg
package version (not the staging or the testing one).Don't put
ffmpeg-obs
out-of-date if both packages are on the same version. If you do, you might be ignored in the future.tytan652 commented on 2021-12-17 15:32 (UTC)
OBS Project actually patch FFmpeg to fix some issues and also add RIST support starting from 27.2.
So I created this package, a ffmpeg package that ensure that you have those.
I really wanted to not do this but some fixes are needed, so I did my best to add those "feature-set options".
They allow you to build ffmpeg with feature-set based on other ffmpeg packages from AUR.
Read the PKGBUILD for more information about them.