8#include <libavformat/avformat.h>
13 AVFormatContext *formatContext;
14 struct CodecContextDeleter {
15 void operator()(AVCodecContext *s) { avcodec_free_context(&s); }
17 std::unique_ptr<AVCodecContext, CodecContextDeleter> decoderContext;
23 std::unique_ptr<FFmpegFrameSink> &sink);
25 void decodePacket(
const AVPacket *packet, AVFrame *frame);
29 void openCodecContext();
Definition: FFmpegDecoder.h:11
int getStreamIndex() const
Definition: FFmpegDecoder.h:26
void decodePacket(const AVPacket *packet, AVFrame *frame)
Definition: FFmpegDecoder.cpp:69
Definition: FFmpegFrameSink.h:23