fixed formatting

This commit is contained in:
zmckevitt 2024-09-06 12:52:30 -06:00
parent 419d685394
commit 9291b673a0

View File

@ -20,7 +20,7 @@ extern "C" {
#include <libswscale/swscale.h> #include <libswscale/swscale.h>
} }
// The av_err2str macro in libavutil/error.h does not play nice with C++ // The av_err2str macro in libavutil/error.h does not play nice with C++
#ifdef av_err2str #ifdef av_err2str
#undef av_err2str #undef av_err2str
#include <string> #include <string>
@ -29,7 +29,7 @@ av_always_inline std::string av_err2string(int errnum) {
return av_make_error_string(errbuf, AV_ERROR_MAX_STRING_SIZE, errnum); return av_make_error_string(errbuf, AV_ERROR_MAX_STRING_SIZE, errnum);
} }
#define av_err2str(err) av_err2string(err).c_str() #define av_err2str(err) av_err2string(err).c_str()
#endif // av_err2str #endif // av_err2str
namespace Libraries::AvPlayer { namespace Libraries::AvPlayer {