Replace call to deprecated avcodec_build() with avcodec_version().