AvTranscoder  0.9.4
C++APIforLibav/FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
common.cpp
Go to the documentation of this file.
1 #include "common.hpp"
2 
3 extern "C" {
4 #include <libavformat/avformat.h>
5 #include <libavfilter/avfilter.h>
6 #include <libavutil/error.h>
7 }
8 
9 #ifndef AV_ERROR_MAX_STRING_SIZE
10 #define AV_ERROR_MAX_STRING_SIZE 64
11 #endif
12 
13 namespace avtranscoder
14 {
15 
17 {
18  av_register_all();
19  avfilter_register_all();
20 }
21 
22 std::string getDescriptionFromErrorCode(const int code)
23 {
24  char err[AV_ERROR_MAX_STRING_SIZE];
25  av_strerror(code, err, sizeof(err));
26  return std::string(err);
27 }
28 }
std::string getDescriptionFromErrorCode(const int code)
Get the string description corresponding to the error code provided by ffmpeg/libav.
Definition: common.cpp:22
void preloadCodecsAndFormats()
Register all the codecs and formats which are enabled at configuration time.
Definition: common.cpp:16
#define AV_ERROR_MAX_STRING_SIZE
Definition: common.cpp:10
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy