]> git.sesse.net Git - nageru/blobdiff - shared/ffmpeg_raii.cpp
Fix compilation with FFmpeg 5.0.
[nageru] / shared / ffmpeg_raii.cpp
index a1028f844b9cbe3dc8299a7fdbc3d518590d6309..f2948e9feba8908f88ee529daaf43e99d1f2b518 100644 (file)
@@ -18,14 +18,14 @@ void avformat_close_input_unique::operator() (AVFormatContext *format_ctx) const
 }
 
 AVFormatContextWithCloser avformat_open_input_unique(
-       const char *pathname, AVInputFormat *fmt,
+       const char *pathname, const AVInputFormat *fmt,
        AVDictionary **options)
 {
        return avformat_open_input_unique(pathname, fmt, options, AVIOInterruptCB{ nullptr, nullptr });
 }
 
 AVFormatContextWithCloser avformat_open_input_unique(
-       const char *pathname, AVInputFormat *fmt,
+       const char *pathname, const AVInputFormat *fmt,
        AVDictionary **options,
        const AVIOInterruptCB &interrupt_cb)
 {
@@ -39,7 +39,7 @@ AVFormatContextWithCloser avformat_open_input_unique(
 
 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)
 {
        AVFormatContext *format_ctx = avformat_alloc_context();