samplefmt: avoid integer overflow in av_samples_get_buffer_size()

CC:libav-stable@libav.org