Lines Matching defs:res
175 int res;
197 res = dav1d_parse_sequence_header(&seq, c->extradata + offset,
199 if (res < 0)
203 res = ff_set_dimensions(c, seq.max_width, seq.max_height);
204 if (res < 0)
205 return res;
219 int res;
263 res = libdav1d_parse_extradata(c);
264 if (res < 0)
265 return res;
267 res = dav1d_open(&dav1d->c, &s);
268 if (res < 0)
301 int res;
306 res = ff_decode_get_packet(c, pkt);
307 if (res < 0 && res != AVERROR_EOF)
308 return res;
311 res = dav1d_data_wrap(data, pkt->data, pkt->size,
313 if (res < 0) {
315 return res;
333 res = dav1d_data_wrap_user_data(data, reordered_opaque,
335 if (res < 0) {
338 return res;
341 } else if (res >= 0) {
347 res = dav1d_send_data(dav1d->c, data);
348 if (res < 0) {
349 if (res == AVERROR(EINVAL))
350 res = AVERROR_INVALIDDATA;
351 if (res != AVERROR(EAGAIN)) {
353 return res;
357 res = dav1d_get_picture(dav1d->c, p);
358 if (res < 0) {
359 if (res == AVERROR(EINVAL))
360 res = AVERROR_INVALIDDATA;
361 else if (res == AVERROR(EAGAIN) && c->internal->draining)
362 res = AVERROR_EOF;
364 return res;
389 res = ff_decode_frame_props(c, frame);
390 if (res < 0)
396 res = ff_set_dimensions(c, p->p.w, p->p.h);
397 if (res < 0)
433 res = AVERROR_INVALIDDATA;
440 res = AVERROR(ENOMEM);
460 res = AVERROR(ENOMEM);
478 res = ff_parse_a53_cc(&buf, gb.buffer, bytestream2_get_bytes_left(&gb));
479 if (res < 0)
481 if (!res)
498 res = AVERROR(ENOMEM);
533 res = 0;
536 if (res < 0)
538 return res;