You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
FFmpegUtilities: inline av_make_error_string
Avoids warnings about the function being unused, if compiling
with `-Wall`
Borrowed from:
222f145230/src/zm_ffmpeg.h (L241)
This commit is contained in:
@@ -91,12 +91,11 @@
|
||||
#endif
|
||||
|
||||
// This wraps an unsafe C macro to be C++ compatible function
|
||||
static const std::string av_make_error_string(int errnum)
|
||||
inline static const std::string av_make_error_string(int errnum)
|
||||
{
|
||||
char errbuf[AV_ERROR_MAX_STRING_SIZE];
|
||||
av_strerror(errnum, errbuf, AV_ERROR_MAX_STRING_SIZE);
|
||||
std::string errstring(errbuf);
|
||||
return errstring;
|
||||
return (std::string)errbuf;
|
||||
}
|
||||
|
||||
// Redefine the C macro to use our new C++ function
|
||||
|
||||
Reference in New Issue
Block a user