We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7b0296 commit 31016f4Copy full SHA for 31016f4
src/AvTranscoder/common.cpp
@@ -17,4 +17,11 @@ void setLogLevel( const int level )
17
av_log_set_level( level );
18
}
19
20
+std::string AvExport getDescriptionFromErrorCode( const int code )
21
+{
22
+ char err[AV_ERROR_MAX_STRING_SIZE];
23
+ av_strerror( code, err, sizeof(err) );
24
+ return std::string( err );
25
+}
26
+
27
src/AvTranscoder/common.hpp
@@ -65,6 +65,10 @@ void AvExport preloadCodecsAndFormats();
65
*/
66
void AvExport setLogLevel( const int level );
67
68
69
+/// Get the string description corresponding to the error code provided by ffmpeg/libav
70
+std::string AvExport getDescriptionFromErrorCode( const int code );
71
72
73
74
#endif
0 commit comments