/**
* Convenience macro, the return value should be used only directly in
* function arguments but never stand-alone.
*/
//#define av_err2str(errnum) \
// av_make_error_string((char[AV_ERROR_MAX_STRING_SIZE]){0}, AV_ERROR_MAX_STRING_SIZE, errnum)
//Modify as the following:
av_always_inline char* av_err2str(int errnum)
{
static char str[AV_ERROR_MAX_STRING_SIZE];
memset(str, 0, sizeof(str));
return av_make_error_string(str, AV_ERROR_MAX_STRING_SIZE, errnum);
}
Modify libavutil/error.h:132 as the above.
Read More:
- Tensorflow C++:You must define TF_LIB_GTL_ALIGNED_CHAR_ARRAY for your compiler
- Testlink 1.9.16 Error: Fatal error: Uncaught Error: Cannot use string offset as an array in D:\softe
- [Solved] error: invalid operands of types ‘const char [6]‘ and ‘const char [6]‘ to binary ‘operator+‘
- Oracle prompt text does not match format string
- How to Solve error C2039: “to_ String “: not a member of” STD “
- Jackson localdatetime to string error: jsr310 [How to Solve]
- MOTR compiling error: cannot call member function ‘void std::basic_string<_CharT, _Traits, _Alloc>::_R
- C++ Compile Error: error: invalid conversion from ‘void*‘ to ‘char*‘ [-fpermissive]
- How to parse JSON string in.Net [error reading job object from jsonreader. Current jsonreader item is not an obj]
- Max virtual memory areas vm.max_map_count [65530] is too low, increase to at least
- frida.InvalidArgumentError: script(line *): SyntaxError: unexpected end of string
- [Solved] java.lang.IllegalStateException: Cannot get a STRING value from a NUMERIC cell
- [Solved] AS Warning: String literal in setText can not be translated. Use Android resources instead.
- feign.FeignException: status 404 reading XXXClient#XXMethod(String)
- Android Studio Error: String index out of range 0 [How to Solve]
- The request was rejected because the URL contained a potentially malicious String “;” [How to Solve]
- C++ Primer Program in VsCode error: no match for call to ‘(std::__cxx11::string…)
- JSON parse error: Can not deserialize instance of java.lang.String out of START_OBJECT token
- How to Solve “Status bar could not find cached time string image. Rendering in-process.” in Xcode
- [Solved] Wwagger error: java.lang.NumberFormatException: For input string: ““