Lines Matching defs:error

71 static int32_t read_int(const char* line, const char** endptr, int* error)
76 *error = -1;
83 static int32_t read_line_and_int(AVIOContext * pb, int* error)
87 *error |= read_line(pb, line, sizeof(line));
88 return read_int(line, &endptr, error);
95 static AVRational read_fps(const char* line, int* error)
99 num = read_int(line, &line, error);
110 *error = -1;
121 int error = 0;
139 error |= read_line(pb, line, sizeof(line)); // ARMovie
140 error |= read_line(pb, line, sizeof(line)); // movie name
142 error |= read_line(pb, line, sizeof(line)); // date/copyright
144 error |= read_line(pb, line, sizeof(line)); // author and other
148 video_format = read_line_and_int(pb, &error);
155 vst->codecpar->width = read_line_and_int(pb, &error); // video width
156 vst->codecpar->height = read_line_and_int(pb, &error); // video height
157 vst->codecpar->bits_per_coded_sample = read_line_and_int(pb, &error); // video bits per sample
181 error |= read_line(pb, line, sizeof(line));
184 error |= read_line(pb, line, sizeof(line)); // video frames per second
185 fps = read_fps(line, &error);
193 error |= read_line(pb, line, sizeof(line));
194 audio_format = read_int(line, &endptr, &error); // audio format ID
203 ast->codecpar->sample_rate = read_line_and_int(pb, &error); // audio bitrate
204 channels = read_line_and_int(pb, &error); // number of audio channels
205 error |= read_line(pb, line, sizeof(line));
206 ast->codecpar->bits_per_coded_sample = read_int(line, &endptr, &error); // audio bits per sample
258 error |= read_line(pb, line, sizeof(line));
264 rpl->frames_per_chunk = read_line_and_int(pb, &error); // video frames per chunk
270 number_of_chunks = read_line_and_int(pb, &error); // number of chunks in the file
277 error |= read_line(pb, line, sizeof(line)); // "even" chunk size in bytes
278 error |= read_line(pb, line, sizeof(line)); // "odd" chunk size in bytes
280 read_line_and_int(pb, &error); // (file index)
281 error |= read_line(pb, line, sizeof(line)); // offset to "helpful" sprite
282 error |= read_line(pb, line, sizeof(line)); // size of "helpful" sprite
284 error |= read_line(pb, line, sizeof(line)); // offset to key frame list
291 for (i = 0; !error && i < number_of_chunks; i++) {
293 error |= read_line(pb, line, sizeof(line));
296 error = -1;
308 if (error)