Merge pull request #7264 from ligfx/ffmpeg_deprecations Fix deprecation warnings with recent FFmpeg versions