fraunhoferhhi / vvenc

VVenC, the Fraunhofer Versatile Video Encoder
https://www.hhi.fraunhofer.de/en/departments/vca/technologies-and-solutions/h266-vvc.html
BSD 3-Clause Clear License
899 stars 158 forks source link

error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension] #377

Closed yurivict closed 2 months ago

yurivict commented 2 months ago

Build fails:

/wrkdirs/usr/ports/multimedia/vvenc/work/vvenc-1.11.1/source/Lib/EncoderLib/InterSearch.cpp:2064:15: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]
 2064 |     Mv prevMv[m_BlkUniMvInfoBuffer->m_uniMvListMaxSize];
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/multimedia/vvenc/work/vvenc-1.11.1/source/Lib/EncoderLib/InterSearch.cpp:2064:15: note: implicit use of 'this' pointer is only allowed within the evaluation of a call to a 'constexpr' member function
1 error generated.

log

Version: 1.11.1 Clang-18 FreeBSD 15-CURRENT

adamjw24 commented 2 months ago

The issue is fixed in current master. Please see #373 and #374

adamjw24 commented 2 months ago

Will be tagged late may with the next release