mistserver/src/input/input_av.h
2021-10-19 22:29:40 +02:00

35 lines
657 B
C++

#ifndef INT64_MIN
#define INT64_MIN (-(9223372036854775807##LL) - 1)
#endif
#ifndef INT64_MAX
#define INT64_MAX ((9223372036854775807##LL))
#endif
#include "input.h"
extern "C"{
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
}
namespace Mist{
class inputAV : public Input{
public:
inputAV(Util::Config *cfg);
~inputAV();
protected:
// Private Functions
bool checkArguments();
bool preRun();
bool readHeader();
void getNext();
void seek(int seekTime);
void trackSelect(std::string trackSpec);
private:
AVFormatContext *pFormatCtx;
};
}// namespace Mist
typedef Mist::inputAV mistIn;