Lines Matching defs:PARSE_ERROR
81 PARSE_ERROR
222 if (payload_size > MAX_CHUNK_PAYLOAD) return PARSE_ERROR;
223 if (SizeIsInvalid(mem, payload_size_padded)) return PARSE_ERROR;
239 if (alpha_chunks > 0) return PARSE_ERROR; // VP8L has its own alpha
254 return PARSE_ERROR;
290 // Returns PARSE_NEED_MORE_DATA with insufficient data, PARSE_ERROR otherwise.
294 if (SizeIsInvalid(mem, min_size)) return PARSE_ERROR;
295 if (actual_size < min_size) return PARSE_ERROR;
299 return (*frame == NULL) ? PARSE_ERROR : PARSE_OK;
323 return PARSE_ERROR;
330 if (status != PARSE_ERROR && has_frames && frame->frame_num_ > 0) {
335 status = PARSE_ERROR;
365 if (status != PARSE_ERROR && has_fragments && frame->frame_num_ > 0) {
368 status = PARSE_ERROR;
429 if (dmux->frames_ != NULL) return PARSE_ERROR;
430 if (SizeIsInvalid(mem, min_size)) return PARSE_ERROR;
434 if (frame == NULL) return PARSE_ERROR;
440 if (status != PARSE_ERROR) {
476 if (vp8x_size > MAX_CHUNK_PAYLOAD) return PARSE_ERROR;
477 if (vp8x_size < VP8X_CHUNK_SIZE) return PARSE_ERROR;
479 if (SizeIsInvalid(mem, vp8x_size)) return PARSE_ERROR;
487 return PARSE_ERROR; // image final dimension is too large
492 if (SizeIsInvalid(mem, CHUNK_HEADER_SIZE)) return PARSE_ERROR;
502 if (chunk_size > MAX_CHUNK_PAYLOAD) return PARSE_ERROR;
503 if (SizeIsInvalid(mem, chunk_size_padded)) return PARSE_ERROR;
507 return PARSE_ERROR;
513 if (anim_chunks > 0) return PARSE_ERROR;
520 if (chunk_size_padded < ANIM_CHUNK_SIZE) return PARSE_ERROR;
536 if (anim_chunks == 0) return PARSE_ERROR; // 'ANIM' precedes frames.
566 return PARSE_ERROR;
672 ParseStatus status = PARSE_ERROR;
693 if (status == PARSE_NEED_MORE_DATA && !partial) status = PARSE_ERROR;
694 if (status != PARSE_ERROR && !parser->valid(dmux)) status = PARSE_ERROR;
700 if (status == PARSE_ERROR) {