Some VMD files set the decode buffer size to 0, so it doesn't work to copy that to the frame load buffer size field. Instead, compute that to be the largest possible size.