26 #include "libavutil/error.h"
37 auto errbuf = std::string(AV_ERROR_MAX_STRING_SIZE,
'\0');
38 av_strerror(errnum, errbuf.data(), errbuf.size());
39 errbuf.resize(errbuf.find(
'\0'));
49 using namespace std::string_literals;
50 auto errbuf = std::string(AV_ERROR_MAX_STRING_SIZE,
'\0');
51 int rc = av_strerror(errnum, errbuf.data(), errbuf.size());
54 errbuf.resize(errbuf.find(
'\0'));
60 #endif // MYTHAVERROR_H