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