#include <libavformat/avformat.h>
#include <libavutil/dict.h>
#include <libavutil/frame.h>
#include <libavformat/avformat.h>
#include <libavutil/dict.h>
#include <libavutil/frame.h>
if (avformat_open_input(&format_ctx, pathname, fmt, options) != 0) {
format_ctx = nullptr;
}
if (avformat_open_input(&format_ctx, pathname, fmt, options) != 0) {
format_ctx = nullptr;
}
{
avcodec_free_context(&codec_ctx);
}
AVCodecContextWithDeleter avcodec_alloc_context3_unique(const AVCodec *codec)
{
{
avcodec_free_context(&codec_ctx);
}
AVCodecContextWithDeleter avcodec_alloc_context3_unique(const AVCodec *codec)
{