]> git.sesse.net Git - nageru/blobdiff - shared/ffmpeg_raii.h
Fix compilation with FFmpeg 5.0.
[nageru] / shared / ffmpeg_raii.h
index 75675edfbebc470a262e42017ad8161c18dfcaed..00f7fc177af7fb45f124eb22b28c1bd57723ef85 100644 (file)
@@ -30,17 +30,17 @@ typedef std::unique_ptr<AVFormatContext, avformat_close_input_unique>
        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, AVInputFormat *fmt, AVDictionary **options,
+       void *opaque, const AVInputFormat *fmt, AVDictionary **options,
        const AVIOInterruptCB &interrupt_cb);