#ifndef LIBAV_LIBAV_HPP #define LIBAV_LIBAV_HPP extern "C"{ # include } //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