Lines Matching defs:ret
430 int ret;
436 ret = inflate(zstream, Z_PARTIAL_FLUSH);
437 if (ret != Z_OK && ret != Z_STREAM_END) {
438 av_log(s->avctx, AV_LOG_ERROR, "inflate returned error %d\n", ret);
448 if (ret == Z_STREAM_END && zstream->avail_in > 0) {
464 int ret = ff_inflate_init(&z, logctx);
465 if (ret < 0)
466 return ret;
475 ret = AVERROR(ENOMEM);
480 ret = inflate(zstream, Z_PARTIAL_FLUSH);
481 if (ret != Z_OK && ret != Z_STREAM_END) {
482 ret = AVERROR_EXTERNAL;
486 if (ret == Z_STREAM_END)
496 return ret;
525 int ret, method;
544 if ((ret = decode_zbuf(&bp, data, data_end, s->avctx)) < 0)
545 return ret;
547 ret = av_bprint_finalize(&bp, (char **)&text);
548 if (ret < 0)
549 return ret;
640 int ret;
651 ret = ff_set_dimensions(avctx, s->width, s->height);
652 if (ret < 0)
653 return ret;
727 ret = ff_thread_get_buffer(avctx, p, 0);
728 if (ret < 0)
729 return ret;
733 ret = ff_thread_get_ext_buffer(avctx, &s->picture,
735 if (ret < 0)
736 return ret;
737 ret = ff_thread_get_buffer(avctx, p, 0);
738 if (ret < 0)
739 return ret;
742 if ((ret = ff_thread_get_ext_buffer(avctx, &s->picture,
744 return ret;
745 ret = av_frame_ref(p, s->picture.f);
746 if (ret < 0)
747 return ret;
799 ret = png_decode_idat(s, gb, p->data[0], p->linesize[0]);
804 if (ret < 0)
805 return ret;
883 int ret, cnt = 0;
889 ret = AVERROR_INVALIDDATA;
895 ret = AVERROR_INVALIDDATA;
899 if ((ret = decode_zbuf(&bp, gb->buffer, gb->buffer_end, s->avctx)) < 0)
900 return ret;
903 ret = av_bprint_finalize(&bp, (char **)&s->iccp_data);
904 if (ret < 0)
905 return ret;
911 return ret;
1172 av_unused int ret = av_frame_copy(s->picture.f, p);
1177 av_assert1(ret >= 0);
1191 int i, ret;
1214 ret = AVERROR_INVALIDDATA;
1221 ret = AVERROR_INVALIDDATA;
1231 ret = AVERROR_INVALIDDATA;
1263 if ((ret = decode_ihdr_chunk(avctx, s, &gb_chunk)) < 0)
1267 if ((ret = decode_phys_chunk(avctx, s, &gb_chunk)) < 0)
1273 if ((ret = decode_fctl_chunk(avctx, s, &gb_chunk)) < 0)
1281 ret = AVERROR_INVALIDDATA;
1289 if ((ret = decode_idat_chunk(avctx, s, &gb_chunk, p)) < 0)
1318 if ((ret = decode_iccp_chunk(s, &gb_chunk)) < 0)
1343 ret = av_bprint_finalize(&bp, &gamma_str);
1344 if (ret < 0)
1345 return ret;
1355 ret = AVERROR_INVALIDDATA;
1448 (ret = handle_p_frame_apng(avctx, s, p)) < 0)
1461 return ret;
1479 int ret;
1484 ret = AVERROR(ENOMEM);
1495 ret = AVERROR(ENOMEM);
1506 ret = AVERROR(ENOMEM);
1527 return ret;
1538 int ret;
1557 ret = inflateReset(&s->zstream.zstream);
1558 if (ret != Z_OK)
1561 if ((ret = decode_frame_common(avctx, s, p, avpkt)) < 0)
1566 ret = bytestream2_tell(&s->gb);
1570 ret = output_frame(s, p);
1571 if (ret < 0)
1581 ret = bytestream2_tell(&s->gb);
1584 return ret;
1593 int ret;
1601 if ((ret = inflateReset(&s->zstream.zstream)) != Z_OK)
1604 if ((ret = decode_frame_common(avctx, s, NULL, avpkt)) < 0)
1605 return ret;
1609 if ((ret = inflateReset(&s->zstream.zstream)) != Z_OK)
1614 if ((ret = decode_frame_common(avctx, s, p, avpkt)) < 0)
1615 return ret;
1622 ret = output_frame(s, p);
1623 if (ret < 0)
1624 return ret;
1646 int ret;
1673 ret = ff_thread_ref_frame(&pdst->last_picture, src_frame);
1674 if (ret < 0)
1675 return ret;