Support FFmpeg 5 There's no 'filename' member in AVFormatContext anymore Some APIs where already deprecated in FFmpeg 4 and have been removed: avcodec_get_context_defaults3 sizeof(AVPicture) av_register_all These changes seem compatible with FFmpeg 4.