Fixed leak in destructor of SamplesImpl, problem was call to av_freep.

Moved some functionality from Buffer to Sample.  Simplified Buffer.