X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ffmpeg_raii.h;h=33d233480528dd8414e92b3fd32b04c1281d4ffa;hb=778fe6ec989e7ed640a6c3d209099b6be3945bba;hp=c0c4a47dc170aa954862eacaa56eb9326cb739d2;hpb=cfcfe8010a40cae1050005637ea1780226cac9cf;p=nageru diff --git a/ffmpeg_raii.h b/ffmpeg_raii.h index c0c4a47..33d2334 100644 --- a/ffmpeg_raii.h +++ b/ffmpeg_raii.h @@ -19,6 +19,7 @@ struct AVFormatContext; struct AVFrame; struct AVInputFormat; struct SwsContext; +typedef struct AVIOInterruptCB AVIOInterruptCB; // AVFormatContext struct avformat_close_input_unique { @@ -29,7 +30,13 @@ typedef std::unique_ptr AVFormatContextWithCloser; AVFormatContextWithCloser avformat_open_input_unique( - const char *pathname, AVInputFormat *fmt, AVDictionary **options); + const char *pathname, AVInputFormat *fmt, + AVDictionary **options); + +AVFormatContextWithCloser avformat_open_input_unique( + const char *pathname, AVInputFormat *fmt, + AVDictionary **options, + const AVIOInterruptCB &interrupt_cb); // AVCodecContext