21 lines
459 B
C++

#ifndef LIBAV_LIBAV_HPP
#define LIBAV_LIBAV_HPP
extern "C"{
# include <libavformat/avformat.h>
}
//av_register_all is required before ffmpeg 4.0 and is deprecated after that
#if LIBAVFORMAT_VERSION_MAJOR >= 58 && LIBAVFORMAT_VERSION_MINOR >= 7
# define REGISTER_LIBAV()
#else
# define REGISTER_LIBAV() av_register_all()
#endif
namespace libav::fmt{}
namespace libav::codec{}
namespace libavfmt = libav::fmt;
namespace libavcodec = libav::codec;
#endif