File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
src/core/libraries/videodec Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 8
8
#include " common/logging/log.h"
9
9
#include " core/libraries/error_codes.h"
10
10
11
+ // The av_err2str macro in libavutil/error.h does not play nice with C++
12
+ #ifdef av_err2str
13
+ #undef av_err2str
14
+ #include < string>
15
+ av_always_inline std::string av_err2string (int errnum) {
16
+ char errbuf[AV_ERROR_MAX_STRING_SIZE];
17
+ return av_make_error_string (errbuf, AV_ERROR_MAX_STRING_SIZE, errnum);
18
+ }
19
+ #define av_err2str (err ) av_err2string(err).c_str()
20
+ #endif // av_err2str
21
+
11
22
namespace Libraries ::Vdec2 {
12
23
13
24
std::vector<OrbisVideodec2AvcPictureInfo> gPictureInfos ;
@@ -225,4 +236,4 @@ AVFrame* VdecDecoder::ConvertNV12Frame(AVFrame& frame) {
225
236
return nv12_frame;
226
237
}
227
238
228
- } // namespace Libraries::Vdec2
239
+ } // namespace Libraries::Vdec2
You can’t perform that action at this time.
0 commit comments