21#pragma GCC diagnostic push
22#pragma GCC diagnostic ignored "-Wconversion"
23#pragma GCC diagnostic ignored "-Wsign-conversion"
24#include <libavutil/dict.h>
25#pragma GCC diagnostic pop
45 dict.m_dict =
nullptr;
54 dict.m_dict =
nullptr;
90 AVDictionary* dict =
m_dict;
95FFmpeg_Dictionary::operator AVDictionary*()
100FFmpeg_Dictionary::operator
const AVDictionary*()
const
RAII wrapper for AVDictionary.
AVDictionary * m_dict
Pointer to underlying AVDictionary.
AVDictionary * get()
Get the owned FFmpeg dictionary pointer.
AVDictionary ** address()
Get a writable pointer-to-pointer for FFmpeg APIs.
void reset()
Free the owned dictionary and reset the wrapper to empty.
AVDictionary * release()
Release ownership without freeing the dictionary.
bool empty() const
Check whether the wrapper currently owns a dictionary.
~FFmpeg_Dictionary()
Release the owned dictionary, if any.
FFmpeg_Dictionary()
Construct an empty dictionary wrapper.
FFmpeg AVDictionary RAII wrapper.