- cp_size += (sizeof( char ) * ((ogg_headers[i]->bytes / 255) + 1)) + ogg_headers[i]->bytes;
- /* This will be too big, but it doesn't matter, as we only need it to be big enough. */
- }
- cp = track->codecPrivate = calloc(1, cp_size);
- cp[offset++] = 0x02;
- for (i = 0; i < 2; ++i)
- {
- for (j = ogg_headers[i]->bytes; j >= 255; j -= 255)
- {
- cp[offset++] = 255;
- }
- cp[offset++] = j;