mpeg5 / xevd

eXtra-fast Essential Video Decoder, MPEG-5 EVC (Essential Video Coding)
Other
71 stars 22 forks source link

app: Fix invalid comparison of c_buf in write_y4m_header #51

Closed Conan-Kudo closed 7 months ago

Conan-Kudo commented 12 months ago

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)
      |               ^~
mpeg5 commented 7 months ago

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