add compatibility stuff to support older ffmpeg and its fork