mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-09 22:45:08 +00:00
29 lines
970 B
Diff
29 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
|