<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body><br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Hi, if I try to build a software where there is a function</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><strong>av_err2str(ret)</strong></p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">I obtain the error</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">/home/denis/Cpp/ffmpeg-6.0/libavutil/error.h:122: <strong>error: taking address of temporary array</strong></p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">In file included from ../../ffmpeg-6.0/libavutil/avutil.h:297,</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">                 from ../../ffmpeg-6.0/libavcodec/avcodec.h:32,</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">                 from ../ffmpegTest/main.cpp:12:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">../../ffmpeg-6.0/libavutil/error.h:122:58: error: taking address of temporary array</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">  122 |     av_make_error_string((char[AV_ERROR_MAX_STRING_SIZE]){0}, AV_ERROR_MAX_STRING_SIZE, errnum)</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">      |                                                          ^~~</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">../ffmpegTest/main.cpp:598:9: note: in expansion of macro ‘av_err2str’</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">  598 |         av_err2str(ret)</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">      |         ^~~~~~~~~~</p>
<p> </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">I'm in c++17 environment</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">-- </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="background-color:#ffffff;"><span style="color:#232629;">+39.347.4070897</span></span></p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><a href="http://www.labcsp.com">http://www.labcsp.com</a><span style="color:#232629;"> </span></p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><a href="http://www.denisgottardello.it">http://www.denisgottardello.it</a><span style="color:#232629;"> </span></p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="background-color:#ffffff;"><span style="color:#232629;">GMT+1</span></span></p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="background-color:#ffffff;"><span style="color:#232629;">Skype: mrdebug</span></span></p>
</body>
</html>