AVFormatContextWithCloser;
AVFormatContextWithCloser avformat_open_input_unique(
- const char *pathname, AVInputFormat *fmt,
+ const char *pathname, const AVInputFormat *fmt,
AVDictionary **options);
AVFormatContextWithCloser avformat_open_input_unique(
- const char *pathname, AVInputFormat *fmt,
+ const char *pathname, const AVInputFormat *fmt,
AVDictionary **options,
const AVIOInterruptCB &interrupt_cb);
+AVFormatContextWithCloser avformat_open_input_unique(
+ int (*read_packet)(void *opaque, uint8_t *buf, int buf_size),
+ void *opaque, const AVInputFormat *fmt, AVDictionary **options,
+ const AVIOInterruptCB &interrupt_cb);
+
// AVCodecContext
struct avcodec_free_context_unique {