Refactorized avdecoder class.
Disable warnings from ffmpeg.