Lines Matching defs:ret

125     int i, ret, matches = 0;\
129 if ((ret = check_stream_specifier(fmtctx, st, spec)) > 0) {\
133 } else if (ret < 0)\
257 AVDictionary *ret = NULL;
264 av_dict_set(&ret, e->key, e->value, 0);
268 return ret;
717 int i, ret = 0;
777 if ((ret = check_stream_specifier(ic, ic->streams[i], istream_spec)) > 0) {
780 } else if (ret < 0)
791 if ((ret = check_stream_specifier(oc, oc->streams[i], ostream_spec)) > 0) {
794 } else if (ret < 0)
866 int i, ret;
939 ret = avcodec_parameters_to_context(ist->dec_ctx, par);
940 if (ret < 0) {
1068 ret = avcodec_parameters_from_context(par, ist->dec_ctx);
1069 if (ret < 0) {
1121 int ret;
1140 if ((ret = avio_open2(&out, filename, AVIO_FLAG_WRITE, &int_cb, NULL)) < 0) {
1156 int err, i, ret;
1289 ret = avformat_find_stream_info(ic, opts);
1295 if (ret < 0) {
1345 ret = avformat_seek_file(ic, -1, INT64_MIN, seek_timestamp, seek_timestamp, 0);
1346 if (ret < 0) {
1461 int i, ret = -1;
1470 for (i = 0; i < FF_ARRAY_ELEMS(base) && ret < 0; i++) {
1476 ret = avio_open2(s, filename, AVIO_FLAG_READ, &int_cb, NULL);
1478 if (ret < 0) {
1481 ret = avio_open2(s, filename, AVIO_FLAG_READ, &int_cb, NULL);
1486 return ret;
1528 int idx = oc->nb_streams - 1, ret = 0;
1550 ret = choose_encoder(o, oc, ost);
1551 if (ret < 0) {
1587 if (preset && (!(ret = get_preset_file_2(preset, ost->enc->name, &s)))) {
1605 if (ret) {
1656 ret = av_bsf_list_parse_str(bsfs, &ost->bsf_ctx);
1657 if (ret < 0) {
1658 av_log(NULL, AV_LOG_ERROR, "Error parsing bitstream filter sequence '%s': %s\n", bsfs, av_err2str(ret));
1743 int ret = avio_open(&pb, filename, AVIO_FLAG_READ);
1747 if (ret < 0) {
1753 ret = avio_read_to_bprint(pb, &bprint, SIZE_MAX);
1755 if (ret < 0) {
1759 ret = av_bprint_finalize(&bprint, &str);
1760 if (ret < 0)
2288 int ret;
2294 ret = av_opt_set(ost->st, "disposition", ost->disposition, 0);
2301 ret = av_opt_eval_flags(&class, o, ost->disposition, &ost->st->disposition);
2305 if (ret < 0)
2306 return ret;
2371 int i, ret = 0;
2374 ret = init_complex_filtergraph(filtergraphs[i]);
2375 if (ret < 0)
2376 return ret;
2990 int index = 0, j, ret = 0;
3004 if ((ret = check_stream_specifier(oc, oc->streams[j], stream_spec)) > 0) {
3015 } else if (ret < 0)
3241 int ret;
3247 ret = opt_default(NULL, opt, arg);
3256 return ret;
3310 int ret;
3314 ret = parse_option(o, s, arg, options);
3316 return ret;
3339 int ret;
3347 ret = parse_option(o, s, arg, options);
3349 return ret;
3386 int ret;
3390 ret = parse_option(o, "metadata:g", tcr, options);
3391 if (ret >= 0)
3392 ret = av_dict_set(&o->g->codec_opts, "gop_timecode", arg, 0);
3394 return ret;
3525 int i, ret;
3534 ret = parse_optgroup(&o, g);
3535 if (ret < 0) {
3539 return ret;
3543 ret = open_file(&o, g->arg);
3545 if (ret < 0) {
3548 return ret;
3560 int ret;
3565 ret = split_commandline(&octx, argc, argv, options, groups,
3567 if (ret < 0) {
3573 ret = parse_optgroup(NULL, &octx.global_opts);
3574 if (ret < 0) {
3583 ret = open_files(&octx.groups[GROUP_INFILE], "input", open_input_file);
3584 if (ret < 0) {
3592 ret = init_complex_filters();
3593 if (ret < 0) {
3599 ret = open_files(&octx.groups[GROUP_OUTFILE], "output", open_output_file);
3600 if (ret < 0) {
3609 if (ret < 0) {
3610 av_strerror(ret, error, sizeof(error));
3613 return ret;
3619 int ret;
3623 ret = avio_open2(&avio, arg, AVIO_FLAG_WRITE, &int_cb, NULL);
3624 if (ret < 0) {
3626 arg, av_err2str(ret));
3627 return ret;