Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
28 lines
970 B
Diff
28 lines
970 B
Diff
diff --git a/src/core/libraries/videodec/videodec2_impl.cpp b/src/core/libraries/videodec/videodec2_impl.cpp
|
|
index 021965e..31eb537 100644
|
|
--- a/src/core/libraries/videodec/videodec2_impl.cpp
|
|
+++ b/src/core/libraries/videodec/videodec2_impl.cpp
|
|
@@ -8,6 +8,16 @@
|
|
#include "common/logging/log.h"
|
|
#include "core/libraries/error_codes.h"
|
|
|
|
+#ifdef av_err2str
|
|
+#undef av_err2str
|
|
+#include <string>
|
|
+av_always_inline std::string av_err2string(int errnum) {
|
|
+ char errbuf[AV_ERROR_MAX_STRING_SIZE];
|
|
+ return av_make_error_string(errbuf, AV_ERROR_MAX_STRING_SIZE, errnum);
|
|
+}
|
|
+#define av_err2str(err) av_err2string(err).c_str()
|
|
+#endif // av_err2str
|
|
+
|
|
namespace Libraries::Vdec2 {
|
|
|
|
std::vector<OrbisVideodec2AvcPictureInfo> gPictureInfos;
|
|
@@ -225,4 +235,4 @@ AVFrame* VdecDecoder::ConvertNV12Frame(AVFrame& frame) {
|
|
return nv12_frame;
|
|
}
|
|
|
|
-} // namespace Libraries::Vdec2
|
|
\ No newline at end of file
|
|
+} // namespace Libraries::Vdec2
|