Skip to content

Commit

Permalink
webp-container-spec: make padding byte=0 a MUST
Browse files Browse the repository at this point in the history
this is consistent with the RIFF specification.

based on comments from:
https://datatracker.ietf.org/doc/draft-zern-webp/ballot/#draft-zern-webp_robert-wilton

Bug: webp:448
Change-Id: I7a09177c9ea001b2e8759dcc5102242864c78105
  • Loading branch information
jzern committed Oct 11, 2022
1 parent 41f0bf6 commit 280a810
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions doc/webp-container-spec.txt
Expand Up @@ -128,9 +128,8 @@ Chunk Size: 32 bits (_uint32_)

Chunk Payload: _Chunk Size_ bytes

: The data payload. If _Chunk Size_ is odd, a single padding byte -- that
SHOULD be `0` to conform with RIFF -- is added. Applications MAY use
another value, but readers may fail to parse the file.
: The data payload. If _Chunk Size_ is odd, a single padding byte -- that MUST
be `0` to conform with RIFF -- is added.

**Note:** RIFF has a convention that all-uppercase chunk FourCCs are standard
chunks that apply to any RIFF file format, while FourCCs specific to a file
Expand Down

0 comments on commit 280a810

Please sign in to comment.