Lines Matching defs:PARSE_ERROR
79 PARSE_ERROR
227 if (payload_size > MAX_CHUNK_PAYLOAD) return PARSE_ERROR;
228 if (SizeIsInvalid(mem, payload_size_padded)) return PARSE_ERROR;
245 if (alpha_chunks > 0) return PARSE_ERROR; // VP8L has its own alpha
260 return PARSE_ERROR;
291 // Returns PARSE_NEED_MORE_DATA with insufficient data, PARSE_ERROR otherwise.
295 if (SizeIsInvalid(mem, min_size)) return PARSE_ERROR;
296 if (actual_size < min_size) return PARSE_ERROR;
300 return (*frame == NULL) ? PARSE_ERROR : PARSE_OK;
328 return PARSE_ERROR;
334 if (status != PARSE_ERROR && is_animation && frame->frame_num_ > 0) {
339 status = PARSE_ERROR;
373 return PARSE_ERROR;
377 if (riff_size < CHUNK_HEADER_SIZE) return PARSE_ERROR;
378 if (riff_size > MAX_CHUNK_PAYLOAD) return PARSE_ERROR;
397 if (dmux->frames_ != NULL) return PARSE_ERROR;
398 if (SizeIsInvalid(mem, min_size)) return PARSE_ERROR;
402 if (frame == NULL) return PARSE_ERROR;
407 if (status != PARSE_ERROR) {
425 status = PARSE_ERROR; // last frame was left incomplete
449 if (chunk_size > MAX_CHUNK_PAYLOAD) return PARSE_ERROR;
450 if (SizeIsInvalid(mem, chunk_size_padded)) return PARSE_ERROR;
454 return PARSE_ERROR;
460 if (anim_chunks > 0 || is_animation) return PARSE_ERROR;
467 if (chunk_size_padded < ANIM_CHUNK_SIZE) return PARSE_ERROR;
483 if (anim_chunks == 0) return PARSE_ERROR; // 'ANIM' precedes frames.
507 return PARSE_ERROR;
536 if (vp8x_size > MAX_CHUNK_PAYLOAD) return PARSE_ERROR;
537 if (vp8x_size < VP8X_CHUNK_SIZE) return PARSE_ERROR;
539 if (SizeIsInvalid(mem, vp8x_size)) return PARSE_ERROR;
547 return PARSE_ERROR; // image final dimension is too large
552 if (SizeIsInvalid(mem, CHUNK_HEADER_SIZE)) return PARSE_ERROR;
668 : PARSE_ERROR;
691 return PARSE_ERROR;
699 ParseStatus status = PARSE_ERROR;
713 if (status == PARSE_ERROR) {
734 status = PARSE_ERROR;
739 if (status == PARSE_NEED_MORE_DATA && !partial) status = PARSE_ERROR;
740 if (status != PARSE_ERROR && !parser->valid(dmux)) status = PARSE_ERROR;
741 if (status == PARSE_ERROR) dmux->state_ = WEBP_DEMUX_PARSE_ERROR;
747 if (status == PARSE_ERROR) {