Lines Matching refs:frame_size
75 size_t frame_size = 0; in ivf_read_frame() local
81 frame_size = mem_get_le32(raw_header); in ivf_read_frame()
83 if (frame_size > 256 * 1024 * 1024) { in ivf_read_frame()
84 warn("Read invalid frame size (%u)\n", (unsigned int)frame_size); in ivf_read_frame()
85 frame_size = 0; in ivf_read_frame()
88 if (frame_size > *buffer_size) { in ivf_read_frame()
89 uint8_t *new_buffer = realloc(*buffer, 2 * frame_size); in ivf_read_frame()
93 *buffer_size = 2 * frame_size; in ivf_read_frame()
96 frame_size = 0; in ivf_read_frame()
102 if (fread(*buffer, 1, frame_size, infile) != frame_size) { in ivf_read_frame()
107 *bytes_read = frame_size; in ivf_read_frame()