On 10/23/2013 12:26 PM, Gopu Govindaswamy wrote: > - ofs.seekp(pic.poc * 3 * (width * height * pixelbytes) / 2); > - > + uint64_t size = (pic.poc * 3); > + size *= (width * height * pixelbytes); > + size /= 2; > + ofs.seekp(size); Why? - Derek