[Libav-user] ffmpeg6, problem on build a own custom software.

Denis Gottardello info at denisgottardello.it
Wed Aug 30 13:41:56 EEST 2023


Hi, if I try to build a software where there is a function

*av_err2str(ret)*

I obtain the error

/home/denis/Cpp/ffmpeg-6.0/libavutil/error.h:122: *error: taking address of temporary array*
In file included from ../../ffmpeg-6.0/libavutil/avutil.h:297,
                 from ../../ffmpeg-6.0/libavcodec/avcodec.h:32,
                 from ../ffmpegTest/main.cpp:12:
../../ffmpeg-6.0/libavutil/error.h:122:58: error: taking address of temporary array
  122 |     av_make_error_string((char[AV_ERROR_MAX_STRING_SIZE]){0}, AV_ERROR_MAX_STRING_SIZE, errnum)
      |                                                          ^~~
../ffmpegTest/main.cpp:598:9: note: in expansion of macro ‘av_err2str’
  598 |         av_err2str(ret)
      |         ^~~~~~~~~~


I'm in c++17 environment

-- 
+39.347.4070897
http://www.labcsp.com[1] 
http://www.denisgottardello.it[2] 
GMT+1
Skype: mrdebug

--------
[1] http://www.labcsp.com
[2] http://www.denisgottardello.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20230830/50a5b60b/attachment.htm>


More information about the Libav-user mailing list