Lines Matching refs:ret
278 int ret;
285 ret = vc1_parse_sprites(v, gb, &sd);
286 if (ret < 0)
287 return ret;
300 if ((ret = ff_get_buffer(avctx, v->sprite_output_frame, 0)) < 0)
301 return ret;
331 int i, ret = AVERROR(ENOMEM);
394 ret = ff_intrax8_common_init(s->avctx, &v->x8, &s->idsp,
397 if (ret < 0)
404 return ret;
431 int ret;
451 ret = init_get_bits8(&gb, avctx->extradata, avctx->extradata_size);
452 if (ret < 0)
453 return ret;
455 if ((ret = ff_vc1_decode_sequence_header(avctx, v, &gb)) < 0)
456 return ret;
498 if ((ret = ff_vc1_decode_sequence_header(avctx, v, &gb)) < 0) {
500 return ret;
505 if ((ret = ff_vc1_decode_entry_point(avctx, v, &gb)) < 0) {
507 return ret;
534 if ((ret = ff_msmpeg4_decode_init(avctx)) < 0)
535 return ret;
536 if ((ret = ff_vc1_decode_init_alloc_tables(v)) < 0)
537 return ret;
630 int buf_size = avpkt->size, n_slices = 0, i, ret;
653 if ((ret = av_frame_ref(pict, s->next_picture_ptr->f)) < 0)
654 return ret;
691 ret = AVERROR(ENOMEM);
697 ret = AVERROR(ENOMEM);
720 ret = AVERROR(ENOMEM);
726 ret = AVERROR(ENOMEM);
748 ret = AVERROR_INVALIDDATA;
755 ret = AVERROR(ENOMEM);
761 ret = AVERROR(ENOMEM);
779 ret = init_get_bits8(&s->gb, buf, buf_size);
780 if (ret < 0)
781 return ret;
809 if ((ret = ff_msmpeg4_decode_init(avctx)) < 0)
811 if ((ret = ff_vc1_decode_init_alloc_tables(v)) < 0) {
820 ret = AVERROR_INVALIDDATA;
832 if ((ret = ff_vc1_parse_frame_header(v, &s->gb)) < 0) {
836 if ((ret = ff_vc1_parse_frame_header_adv(v, &s->gb)) < 0) {
848 ret = AVERROR_INVALIDDATA;
854 ret = AVERROR_INVALIDDATA;
859 ret = AVERROR_INVALIDDATA;
878 if ((ret = ff_mpv_frame_start(s, avctx)) < 0) {
906 if ((ret = avctx->hwaccel->start_frame(avctx, buf_start, buf_start_second_field - buf_start)) < 0)
911 if ((ret = avctx->hwaccel->decode_slice(avctx, buf_start, buf_start_second_field - buf_start)) < 0)
914 if ((ret = avctx->hwaccel->decode_slice(avctx, buf_start, slices[0].rawbuf - buf_start)) < 0)
925 ret = AVERROR_INVALIDDATA;
932 if ((ret = avctx->hwaccel->decode_slice(avctx, slices[i].rawbuf, slices[i].raw_size)) < 0)
937 if ((ret = avctx->hwaccel->end_frame(avctx)) < 0)
948 ret = AVERROR_INVALIDDATA;
953 if ((ret = avctx->hwaccel->start_frame(avctx, buf_start_second_field, (buf + buf_size) - buf_start_second_field)) < 0)
958 if ((ret = avctx->hwaccel->decode_slice(avctx, buf_start_second_field, (buf + buf_size) - buf_start_second_field)) < 0)
961 if ((ret = avctx->hwaccel->decode_slice(avctx, buf_start_second_field, slices[n_slices1 + 2].rawbuf - buf_start_second_field)) < 0)
972 ret = AVERROR_INVALIDDATA;
979 if ((ret = avctx->hwaccel->decode_slice(avctx, slices[i].rawbuf, slices[i].raw_size)) < 0)
984 if ((ret = avctx->hwaccel->end_frame(avctx)) < 0)
988 if ((ret = avctx->hwaccel->start_frame(avctx, buf_start, (buf + buf_size) - buf_start)) < 0)
993 if ((ret = avctx->hwaccel->decode_slice(avctx, buf_start, (buf + buf_size) - buf_start)) < 0)
997 if ((ret = avctx->hwaccel->decode_slice(avctx, buf_start, slices[0].rawbuf - buf_start)) < 0)
1009 ret = AVERROR_INVALIDDATA;
1016 if ((ret = avctx->hwaccel->decode_slice(avctx, slices[i].rawbuf, slices[i].raw_size)) < 0)
1020 if ((ret = avctx->hwaccel->end_frame(avctx)) < 0)
1062 ret = AVERROR_INVALIDDATA;
1071 ret = AVERROR_INVALIDDATA;
1122 ret = AVERROR_INVALIDDATA;
1141 ret = AVERROR(ENOMEM);
1145 if ((ret = vc1_decode_sprites(v, &s->gb)) < 0)
1148 if ((ret = av_frame_ref(pict, v->sprite_output_frame)) < 0)
1153 if ((ret = av_frame_ref(pict, s->current_picture_ptr->f)) < 0)
1159 if ((ret = av_frame_ref(pict, s->last_picture_ptr->f)) < 0)
1179 return ret;