Introduce CHUNK_SIZE_BYTES in muxi.h.

Plus a style fix.

Change-Id: Id94df6c91a96598cb022c813e0981f542aebe982
This commit is contained in:
Urvang Joshi
2012-05-10 13:05:05 +05:30
parent 14757f8ae2
commit c579a71012
3 changed files with 6 additions and 6 deletions

View File

@ -643,9 +643,9 @@ WebPMuxError WebPMuxAssemble(WebPMux* const mux,
// Main RIFF header.
PutLE32(data + 0, mktag('R', 'I', 'F', 'F'));
PutLE32(data + 4, (uint32_t)size - CHUNK_HEADER_SIZE);
PutLE32(data + TAG_SIZE, (uint32_t)size - CHUNK_HEADER_SIZE);
assert(size == (uint32_t)size);
PutLE32(data + 8, mktag('W', 'E', 'B', 'P'));
PutLE32(data + TAG_SIZE + CHUNK_SIZE_BYTES, mktag('W', 'E', 'B', 'P'));
// Chunks.
dst = data + RIFF_HEADER_SIZE;