MythTV  master
Functions
mythaverror.h File Reference
#include <string>
#include "mythexp.h"
#include "libavutil/error.h"
Include dependency graph for mythaverror.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

MPUBLIC int av_strerror_stdstring (int errnum, std::string &errbuf)
 A quick and dirty C++ equivalent to av_strerror. More...
 
MPUBLIC char * av_make_error_stdstring (std::string &errbuf, int errnum)
 A C++ equivalent to av_make_error_string. More...
 
MPUBLIC std::string av_make_error_stdstring (int errnum)
 A C++ equivalent to av_make_error_string() which does not need an input buffer, similar to FFmpeg's av_err2str() macro. More...
 
MPUBLIC std::string av_make_error_stdstring_unknown (int errnum)
 

Function Documentation

◆ av_strerror_stdstring()

MPUBLIC int av_strerror_stdstring ( int  errnum,
std::string &  errbuf 
)

A quick and dirty C++ equivalent to av_strerror.

The caller must supply the stdstring.

See also
av_strerror

Definition at line 27 of file mythaverror.cpp.

Referenced by av_make_error_stdstring().

◆ av_make_error_stdstring() [1/2]

MPUBLIC char* av_make_error_stdstring ( std::string &  errbuf,
int  errnum 
)

◆ av_make_error_stdstring() [2/2]

MPUBLIC std::string av_make_error_stdstring ( int  errnum)
inline

A C++ equivalent to av_make_error_string() which does not need an input buffer, similar to FFmpeg's av_err2str() macro.

Definition at line 35 of file mythaverror.h.

◆ av_make_error_stdstring_unknown()

MPUBLIC std::string av_make_error_stdstring_unknown ( int  errnum)
inline
Returns
the string returned by av_str_error() if it succeeded, otherwise returns "UNKNOWN" instead of av_str_error()'s generic message which indicates the input errnum.

Definition at line 47 of file mythaverror.h.

Referenced by AvFormatDecoder::GetFrame(), and MythStreamInfoList::MythStreamInfoList().