Skip to content
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

Fix GCC7 build #36

Closed
wants to merge 1 commit into from
Closed

Fix GCC7 build #36

wants to merge 1 commit into from

Conversation

ffontaine
Copy link

if (*pSlash != '\0') {

As it stands the body of that if will always execute and when there are
no encoding parameters ppEncodingParams will be returned as a pointer to
an empty string rather than as a null pointer

Signed-off-by: Peter Korsgaard [email protected]
[Retrieved from:
https://git.buildroot.net/buildroot/tree/package/mp4v2/0001-Fix-GCC7-build.patch]
Signed-off-by: Fabrice Fontaine [email protected]

if (*pSlash != '\0') {

As it stands the body of that if will always execute and when there are
no encoding parameters ppEncodingParams will be returned as a pointer to
an empty string rather than as a null pointer

Signed-off-by: Peter Korsgaard <[email protected]>
[Retrieved from:
https://git.buildroot.net/buildroot/tree/package/mp4v2/0001-Fix-GCC7-build.patch]
Signed-off-by: Fabrice Fontaine <[email protected]>
@Anton-Latukha
Copy link

Anton-Latukha commented Jun 18, 2020

@TechSmith

True, this patch was required to build projects both on Arch Linux https://git.archlinux.org/svntogit/packages.git/plain/trunk/libmp4v2-c++11.patch?h=packages/libmp4v2, and in Nixpkgs ("master" store state of NixOS).

You can see that 4.1.3 is currently available only on Arch Linux derivatives, so this patch allowed the use of this package for them, and not with this patching would also be in Nixpkgs.

Arch Linux and NixOS are the best downstream testing grounds, so with this patch package would be picked-up by all other distros.

@Anton-Latukha
Copy link

@ryandesign
Copy link

You can close this; it was already committed in 8d6307e.

@ffontaine ffontaine closed this Dec 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants