-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ffmpeg: Enable avfilter and avformat for gst-libav #1533
Conversation
|
Previously, gst-libav failed to build due to absence of avfilter and avformat libraries from ffmpeg. This commit enables those libraries by fixing the build error with unistd.h. This imports a patch for zlib from vcpkg[^1] to fix the unistd.h check. In gvsbuild, zlib is build using nmake which copies the zconf.h file. So, the imported patch file was modified for zconf.h only. [^1]: https://github.com/microsoft/vcpkg/blob/master/ports/zlib/0001-Prevent-invalid-inclusions-when-HAVE_-is-set-to-0.patch
31960b2
to
6fc5733
Compare
Hi @Biswa96, thanks so much for thinking of us! This looks great. Do you know if someone tried to submit this upstream to the zlib repo? |
No. |
Ok, let me at least try to see if I can get it accepted upstream. |
There is an old upstream issue with same problem madler/zlib#787 |
9a6e363
to
6bcf799
Compare
Hi @Biswa96, I simplified the patch syntax to improve readability and submitted a PR upstream to zlib. |
Thanks again @Biswa96, this is now fixed upstream with zlib and I brought in the exact patch to Gvsbuild. |
Previously, gst-libav failed to build due to absence of avfilter and avformat libraries from ffmpeg. This commit enables those libraries by fixing the build error with unistd.h. This imports a patch for zlib from vcpkg1 to fix the unistd.h check.
In gvsbuild, zlib is build using nmake which copies the zconf.h file. So, the imported patch file was modified for zconf.h only.
Footnotes
https://github.com/microsoft/vcpkg/blob/master/ports/zlib/0001-Prevent-invalid-inclusions-when-HAVE_-is-set-to-0.patch ↩