Structure I created:
struct VideoSample { const unsigned char * buffer; int len; }; VideoSample * newVideoSample = new VideoSample;
delete newVideoSample;
However, consider using a smart pointer that will release the memory automatically, for example:
std::auto_ptr newVideoSample(new VideoSample);