Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/dec/vp8l_dec.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ static int DecodeImageStream(int xsize, int ysize,
int VP8LCheckSignature(const uint8_t* const data, size_t size) {
return (size >= VP8L_FRAME_HEADER_SIZE &&
data[0] == VP8L_MAGIC_BYTE &&
(data[4] >> 5) == 0); // version
(data[VP8L_FRAME_HEADER_SIZE - 1] >> 5) == 0); // version
}

static int ReadImageInfo(VP8LBitReader* const br,
Expand Down
2 changes: 1 addition & 1 deletion src/webp/encode.h
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ typedef enum WebPEncodingError {
} WebPEncodingError;

// maximum width/height allowed (inclusive), in pixels
#define WEBP_MAX_DIMENSION 16383
#define WEBP_MAX_DIMENSION 32700

// Main exchange structure (input samples, output bytes, statistics)
//
Expand Down
4 changes: 2 additions & 2 deletions src/webp/format_constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
// VP8L related constants.
#define VP8L_SIGNATURE_SIZE 1 // VP8L signature size.
#define VP8L_MAGIC_BYTE 0x2f // VP8L signature byte.
#define VP8L_IMAGE_SIZE_BITS 14 // Number of bits used to store
#define VP8L_IMAGE_SIZE_BITS 18 // Number of bits used to store
// width and height.
#define VP8L_VERSION_BITS 3 // 3 bits reserved for version.
#define VP8L_VERSION 0 // version 0
#define VP8L_FRAME_HEADER_SIZE 5 // Size of the VP8L frame header.
#define VP8L_FRAME_HEADER_SIZE 6 // Size of the VP8L frame header.

#define MAX_PALETTE_SIZE 256
#define MAX_CACHE_BITS 11
Expand Down