Cast buffers as short int/uint16_t for audio_resample function from libavcodec resample