Lines Matching defs:ret
508 unsigned ret = get_ue_golomb(gb);
509 if (ret >= ((1U<<31)>>order)) {
514 return (ret<<order) + get_bits(gb, order);
516 return ret;
553 int i, esc_code, level, mask, ret;
588 if ((ret = dequant(h, level_buf, run_buf, block, dequant_mul[qp],
590 return ret;
600 int ret = decode_residual_block(h, &h->gb, chroma_dec, 0,
602 if (ret < 0)
603 return ret;
606 int ret = decode_residual_block(h, &h->gb, chroma_dec, 0,
608 if (ret < 0)
609 return ret;
662 int ret;
707 ret = decode_residual_block(h, gb, intra_dec, 1, h->qp, d, h->l_stride);
708 if (ret < 0)
709 return ret;
720 ret = decode_residual_chroma(h);
721 if (ret < 0)
722 return ret;
986 int ret;
1023 ret = ff_get_buffer(h->avctx, h->cur.f, h->cur.f->pict_type == AV_PICTURE_TYPE_B ?
1025 if (ret < 0)
1026 return ret;
1035 if ((ret = ff_cavs_init_pic(h)) < 0)
1036 return ret;
1095 ret = 0;
1099 ret = decode_mb_i(h, 0);
1100 if (ret < 0)
1109 ret = AVERROR_INVALIDDATA;
1118 ret = AVERROR_INVALIDDATA;
1123 ret = decode_mb_i(h, mb_type - P_8X8 - 1);
1127 if (ret < 0)
1136 ret = AVERROR_INVALIDDATA;
1142 ret = decode_mb_b(h, B_SKIP);
1145 ret = AVERROR_INVALIDDATA;
1150 ret = decode_mb_i(h, mb_type - B_8X8 - 1);
1152 ret = decode_mb_b(h, mb_type);
1154 if (ret < 0)
1159 if (ret >= 0 && h->cur.f->pict_type != AV_PICTURE_TYPE_B) {
1164 return ret;
1177 int ret;
1214 ret = ff_set_dimensions(h->avctx, width, height);
1215 if (ret < 0)
1216 return ret;
1241 int input_size, ret;
1293 if ((ret = av_frame_ref(rframe, h->DPB[!h->low_delay].f)) < 0)
1294 return ret;