Lines Matching refs:ret
109 int ret;
122 ret = AVERROR(ENOMEM);
129 ret = AVERROR(ENOMEM);
139 ret = AVERROR(ENOMEM);
147 return ret;
152 int ret, i;
176 ret = avcodec_parameters_copy(ctx->par_out, ctx->par_in);
177 if (ret < 0)
178 return ret;
183 ret = ff_bsf(ctx->filter)->init(ctx);
184 if (ret < 0)
185 return ret;
206 int ret;
223 ret = av_packet_make_refcounted(pkt);
224 if (ret < 0)
225 return ret;
287 int ret, i;
292 ret = avcodec_parameters_copy(lst->bsfs[i]->par_in, cod_par);
293 if (ret < 0)
298 ret = av_bsf_init(lst->bsfs[i]);
299 if (ret < 0)
307 ret = avcodec_parameters_copy(bsf->par_out, cod_par);
310 return ret;
316 int ret, eof = 0;
324 ret = av_bsf_receive_packet(lst->bsfs[lst->idx-1], out);
326 ret = ff_bsf_get_packet_ref(bsf, out);
327 if (ret == AVERROR(EAGAIN)) {
329 return ret;
332 } else if (ret == AVERROR_EOF) {
334 } else if (ret < 0)
335 return ret;
339 ret = av_bsf_send_packet(lst->bsfs[lst->idx], eof ? NULL : out);
340 av_assert1(ret != AVERROR(EAGAIN));
341 if (ret < 0) {
343 return ret;
348 return ret;
446 int ret;
454 ret = av_bsf_alloc(filter, &bsf);
455 if (ret < 0)
456 return ret;
465 ret = av_opt_set_from_string(bsf->priv_data, options, shorthand, "=", ":");
466 if (ret < 0)
471 ret = av_opt_set_dict2(bsf, options_dict, AV_OPT_SEARCH_CHILDREN);
472 if (ret < 0)
476 ret = av_bsf_list_append(lst, bsf);
479 if (ret < 0)
482 return ret;
492 int ret = 0;
502 ret = av_bsf_alloc(&list_bsf.p, bsf);
503 if (ret < 0)
504 return ret;
513 return ret;
530 int ret;
541 ret = bsf_parse_single(bsf_str, lst);
543 if (ret < 0)
547 ret = av_bsf_list_finalize(&lst, bsf_lst);
549 if (ret < 0)
551 return ret;