Lines Matching refs:PARSE_ERROR

79   PARSE_ERROR  enumerator
227 if (payload_size > MAX_CHUNK_PAYLOAD) return PARSE_ERROR; in StoreFrame()
228 if (SizeIsInvalid(mem, payload_size_padded)) return PARSE_ERROR; in StoreFrame()
245 if (alpha_chunks > 0) return PARSE_ERROR; // VP8L has its own alpha in StoreFrame()
260 return PARSE_ERROR; in StoreFrame()
295 if (SizeIsInvalid(mem, min_size)) return PARSE_ERROR; in NewFrame()
296 if (actual_size < min_size) return PARSE_ERROR; in NewFrame()
300 return (*frame == NULL) ? PARSE_ERROR : PARSE_OK; in NewFrame()
328 return PARSE_ERROR; in ParseAnimationFrame()
334 if (status != PARSE_ERROR && is_animation && frame->frame_num_ > 0) { in ParseAnimationFrame()
339 status = PARSE_ERROR; in ParseAnimationFrame()
373 return PARSE_ERROR; in ReadHeader()
377 if (riff_size < CHUNK_HEADER_SIZE) return PARSE_ERROR; in ReadHeader()
378 if (riff_size > MAX_CHUNK_PAYLOAD) return PARSE_ERROR; in ReadHeader()
397 if (dmux->frames_ != NULL) return PARSE_ERROR; in ParseSingleImage()
398 if (SizeIsInvalid(mem, min_size)) return PARSE_ERROR; in ParseSingleImage()
402 if (frame == NULL) return PARSE_ERROR; in ParseSingleImage()
407 if (status != PARSE_ERROR) { in ParseSingleImage()
425 status = PARSE_ERROR; // last frame was left incomplete in ParseSingleImage()
449 if (chunk_size > MAX_CHUNK_PAYLOAD) return PARSE_ERROR; in ParseVP8XChunks()
450 if (SizeIsInvalid(mem, chunk_size_padded)) return PARSE_ERROR; in ParseVP8XChunks()
454 return PARSE_ERROR; in ParseVP8XChunks()
460 if (anim_chunks > 0 || is_animation) return PARSE_ERROR; in ParseVP8XChunks()
467 if (chunk_size_padded < ANIM_CHUNK_SIZE) return PARSE_ERROR; in ParseVP8XChunks()
483 if (anim_chunks == 0) return PARSE_ERROR; // 'ANIM' precedes frames. in ParseVP8XChunks()
507 return PARSE_ERROR; in ParseVP8XChunks()
536 if (vp8x_size > MAX_CHUNK_PAYLOAD) return PARSE_ERROR; in ParseVP8X()
537 if (vp8x_size < VP8X_CHUNK_SIZE) return PARSE_ERROR; in ParseVP8X()
539 if (SizeIsInvalid(mem, vp8x_size)) return PARSE_ERROR; in ParseVP8X()
547 return PARSE_ERROR; // image final dimension is too large in ParseVP8X()
552 if (SizeIsInvalid(mem, CHUNK_HEADER_SIZE)) return PARSE_ERROR; in ParseVP8X()
669 : PARSE_ERROR; in CreateRawImageDemuxer()
692 return PARSE_ERROR; in CreateRawImageDemuxer()
700 ParseStatus status = PARSE_ERROR; in WebPDemuxInternal()
714 if (status == PARSE_ERROR) { in WebPDemuxInternal()
735 status = PARSE_ERROR; in WebPDemuxInternal()
740 if (status == PARSE_NEED_MORE_DATA && !partial) status = PARSE_ERROR; in WebPDemuxInternal()
741 if (status != PARSE_ERROR && !parser->valid(dmux)) status = PARSE_ERROR; in WebPDemuxInternal()
742 if (status == PARSE_ERROR) dmux->state_ = WEBP_DEMUX_PARSE_ERROR; in WebPDemuxInternal()
748 if (status == PARSE_ERROR) { in WebPDemuxInternal()