fix support for recent libav/ffmpeg