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

app: Fix invalid comparison of c_buf in write_y4m_header #51

Merged
merged 1 commit into from
Mar 4, 2024

Conversation

Conan-Kudo
Copy link
Contributor

This fixes the following error:

/builddir/build/BUILD/xevd-0.4.1/app/xevd_app.c: In function 'write_y4m_header': /builddir/build/BUILD/xevd-0.4.1/app/xevd_app.c:300:15: error: the comparison will always evaluate as 'false' for the address of 'c_buf' will never be NULL [-Werror=address]
  300 |     if (c_buf == NULL)
      |               ^~

This fixes the following error:

/builddir/build/BUILD/xevd-0.4.1/app/xevd_app.c: In function 'write_y4m_header':
/builddir/build/BUILD/xevd-0.4.1/app/xevd_app.c:300:15: error: the comparison will always evaluate as 'false' for the address of 'c_buf' will never be NULL [-Werror=address]
  300 |     if (c_buf == NULL)
      |               ^~
Copy link
Owner

@mpeg5 mpeg5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Patch seems to be reasonable, but there is a build error on Windows OS.
Could you try to resolve the error?

@mpeg5 mpeg5 self-requested a review March 4, 2024 00:47
@mpeg5
Copy link
Owner

mpeg5 commented Mar 4, 2024

When I checked the code, it doesn't seem to be related to windows build error.
It can be merged to main.

@mpeg5 mpeg5 merged commit ff78e60 into mpeg5:master Mar 4, 2024
1 of 2 checks passed
@Conan-Kudo Conan-Kudo deleted the fix-c_buf-check branch April 23, 2024 12:42
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