Lines Matching defs:ret
2330 int i, inter, plane, ret;
2338 ret = init_frames(s);
2339 if (ret < 0)
2340 return ret;
2377 ret = av_pix_fmt_get_chroma_sub_sample(avctx->pix_fmt, &s->chroma_x_shift, &s->chroma_y_shift);
2378 if (ret)
2379 return ret;
2441 ret = ff_init_vlc_from_lengths(&s->coeff_vlc[i], 11, 32,
2445 if (ret < 0)
2446 return ret;
2452 ret = ff_init_vlc_from_lengths(&s->coeff_vlc[i], 11, tab->nb_entries,
2456 if (ret < 0)
2457 return ret;
2461 ret = ff_init_vlc_from_lengths(&s->superblock_run_length_vlc, SUPERBLOCK_VLC_BITS, 34,
2464 if (ret < 0)
2465 return ret;
2467 ret = ff_init_vlc_from_lengths(&s->fragment_run_length_vlc, 5, 30,
2470 if (ret < 0)
2471 return ret;
2473 ret = ff_init_vlc_from_lengths(&s->mode_code_vlc, 3, 8,
2476 if (ret < 0)
2477 return ret;
2479 ret = ff_init_vlc_from_lengths(&s->motion_vector_vlc, VP3_MV_VLC_BITS, 63,
2483 if (ret < 0)
2484 return ret;
2489 ret = ff_init_vlc_from_lengths(&s->vp4_mv_vlc[j][i], VP4_MV_VLC_BITS, 63,
2493 if (ret < 0)
2494 return ret;
2499 if ((ret = init_vlc(&s->block_pattern_vlc[i], 3, 14,
2502 return ret;
2512 int ret = 0;
2516 ret = ff_thread_ref_frame(&s->last_frame, &s->current_frame);
2517 if (ret < 0)
2522 ret = ff_thread_ref_frame(&s->golden_frame, &s->current_frame);
2527 return ret;
2541 int ret;
2542 if ((ret = ref_frame(dst, &dst->current_frame, &src->current_frame)) < 0 ||
2543 (ret = ref_frame(dst, &dst->golden_frame, &src->golden_frame)) < 0 ||
2544 (ret = ref_frame(dst, &dst->last_frame, &src->last_frame)) < 0)
2545 return ret;
2598 int i, ret;
2600 if ((ret = init_get_bits8(&gb, buf, buf_size)) < 0)
2601 return ret;
2614 ret = theora_decode_header(avctx, &gb);
2616 if (ret >= 0)
2617 ret = vp3_decode_init(avctx);
2618 if (ret < 0) {
2620 return ret;
2625 ret = theora_decode_tables(avctx, &gb);
2626 if (ret >= 0)
2627 ret = vp3_decode_init(avctx);
2628 if (ret < 0) {
2630 return ret;
2681 if ((ret = ff_thread_get_ext_buffer(avctx, &s->current_frame,
2688 ret = AVERROR(ENOMEM);
2746 if ((ret = ff_thread_get_ext_buffer(avctx, &s->golden_frame,
2750 if ((ret = ff_thread_ref_frame(&s->last_frame,
2761 if ((ret = unpack_superblocks(s, &gb)) < 0) {
2767 if ((ret = vp4_unpack_macroblocks(s, &gb)) < 0) {
2773 if ((ret = unpack_modes(s, &gb)) < 0) {
2777 if (ret = unpack_vectors(s, &gb)) {
2781 if ((ret = unpack_block_qpis(s, &gb)) < 0) {
2787 if ((ret = unpack_dct_coeffs(s, &gb)) < 0) {
2793 if ((ret = vp4_unpack_dct_coeffs(s, &gb)) < 0) {
2821 if ((ret = av_frame_ref(frame, s->current_frame.f)) < 0)
2822 return ret;
2832 ret = update_frames(avctx);
2833 if (ret < 0)
2834 return ret;
2845 return ret;
2886 int ret;
2974 ret = ff_set_dimensions(avctx, s->width, s->height);
2975 if (ret < 0)
2976 return ret;
3003 int i, n, matrices, inter, plane, ret;
3097 if ((ret = read_huffman_tree(&s->huffman_table[i], gb, 0, avctx)) < 0)
3098 return ret;
3114 int ret;
3134 ret = init_get_bits8(&gb, header_start[i], header_len[i]);
3135 if (ret < 0)
3136 return ret;