samplefmt: avoid integer overflow in av_samples_get_buffer_size()