Merge pull request #3946 from comex/avi-warning-fix Use newer ffmpeg APIs to avoid deprecation warnings.