[osx] support building with depends ffmpeg instead of internal
[cosmetic] drop unused variable
[osx] drop deprecated get/release_buffer