Lines Matching defs:ret

377         int ret = av_reallocp_array(&s->tile_group_info, cur_tile_num,
379 if (ret < 0) {
381 return ret;
439 int ret;
560 ret = ff_thread_get_format(avctx, pix_fmts);
561 if (ret < 0)
562 return ret;
576 avctx->pix_fmt = ret;
597 int ret;
599 ret = av_buffer_replace(&dst->header_ref, src->header_ref);
600 if (ret < 0)
601 return ret;
608 ret = av_frame_ref(dst->f, src->f);
609 if (ret < 0)
696 int ret = ff_set_dimensions(avctx, width, height);
697 if (ret < 0)
698 return ret;
723 int ret;
726 ret = ff_set_dimensions(avctx, width, height);
727 if (ret < 0)
728 return ret;
737 ret = ff_set_sar(avctx, aspect_ratio);
738 if (ret < 0)
739 return ret;
749 int ret;
770 ret = ff_cbs_init(&s->cbc, AV_CODEC_ID_AV1, avctx);
771 if (ret < 0)
772 return ret;
777 ret = ff_cbs_read_extradata_from_codec(s->cbc,
780 if (ret < 0) {
782 return ret;
791 ret = set_context_with_sequence(avctx, seq);
792 if (ret < 0) {
801 return ret;
809 int ret;
811 ret = update_context_with_frame_header(avctx, header);
812 if (ret < 0) {
814 return ret;
817 if ((ret = ff_thread_get_buffer(avctx, f->f, AV_GET_BUFFER_FLAG_REF)) < 0)
842 ret = AVERROR(ENOMEM);
852 return ret;
920 int ret;
927 ret = av_frame_ref(frame, srcframe);
928 if (ret < 0)
929 return ret;
932 ret = export_film_grain(avctx, frame);
933 if (ret < 0) {
935 return ret;
952 int ret;
957 if ((ret = av1_frame_ref(avctx, &s->ref[i], &s->cur_frame)) < 0) {
960 return ret;
970 int ret;
980 ret = init_tile_data(s);
981 if (ret < 0) {
983 return ret;
994 ret = av1_frame_alloc(avctx, &s->cur_frame);
995 if (ret < 0) {
998 return ret;
1006 return ret;
1014 int ret;
1016 ret = ff_cbs_read_packet(s->cbc, &s->current_obu, pkt);
1017 if (ret < 0) {
1040 ret = AVERROR(ENOMEM);
1046 ret = set_context_with_sequence(avctx, s->raw_seq);
1047 if (ret < 0) {
1056 ret = get_pixel_format(avctx);
1057 if (ret < 0) {
1066 ret = avctx->hwaccel->decode_params(avctx, unit->type, unit->data,
1068 if (ret < 0) {
1083 ret = AVERROR_INVALIDDATA;
1090 ret = AVERROR(ENOMEM);
1102 ret = av1_frame_ref(avctx, &s->cur_frame,
1104 if (ret < 0) {
1109 ret = update_reference_list(avctx);
1110 if (ret < 0) {
1116 ret = set_output_frame(avctx, frame, pkt, got_frame);
1117 if (ret < 0)
1126 ret = get_current_frame(avctx);
1127 if (ret < 0) {
1136 ret = avctx->hwaccel->start_frame(avctx, unit->data,
1138 if (ret < 0) {
1149 ret = AVERROR_INVALIDDATA;
1158 ret = get_tiles_info(avctx, raw_tile_group);
1159 if (ret < 0)
1163 ret = avctx->hwaccel->decode_slice(avctx,
1166 if (ret < 0) {
1186 ret = avctx->hwaccel->end_frame(avctx);
1187 if (ret < 0) {
1193 ret = update_reference_list(avctx);
1194 if (ret < 0) {
1200 ret = set_output_frame(avctx, frame, pkt, got_frame);
1201 if (ret < 0) {
1213 if (ret < 0)
1215 return ret;