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

src/mp4track.cpp: replace nullptr by NULL #62

Closed
wants to merge 1 commit into from
Closed

src/mp4track.cpp: replace nullptr by NULL #62

wants to merge 1 commit into from

Conversation

ffontaine
Copy link

Commit 15ec111 added code that uses nullptr. nullptr is C++11, it will break the build with gcc < 5.

Semantically, NULL and nullptr are different, so should not be mixed. In this situation, m_File.FindAtom() indeed does not return nullptr, but NULL (on error, that is).

Switch back to comparing against NULL.

Fixes:

[Retrieved from:
https://git.buildroot.net/buildroot/tree/package/mp4v2/0002-src-mp4track.cpp-replace-nullptr-by-NULL.patch]
Signed-off-by: Fabrice Fontaine [email protected]

Commit 15ec111 added code that uses
nullptr. nullptr is C++11, it will break the build with gcc < 5.

Semantically, NULL and nullptr are different, so should not be mixed.
In this situation, m_File.FindAtom() indeed does not return nullptr,
but NULL (on error, that is).

Switch back to comparing against NULL.

Fixes:
 - http://autobuild.buildroot.org/results/14937c96a82fb3d10e5d83bd7b2905b846fb09f9

[Retrieved from:
https://git.buildroot.net/buildroot/tree/package/mp4v2/0002-src-mp4track.cpp-replace-nullptr-by-NULL.patch]
Signed-off-by: Fabrice Fontaine <[email protected]>
This pull request was closed.
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.

1 participant