avcodec: fix version check for ffmpeg