Lines Matching defs:ret
376 static void ffprobe_cleanup(int ret)
551 int ret = 0;
566 ret = avio_close((*wctx)->avio);
569 return ret;
621 int i, ret = 0;
624 ret = AVERROR(ENOMEM);
629 ret = AVERROR(ENOMEM);
652 if ((ret = av_dict_parse_string(&opts, args, "=", ":", 0)) < 0) {
659 if ((ret = av_opt_set(*wctx, opt->key, opt->value, AV_OPT_SEARCH_CHILDREN)) < 0) {
677 ret = av_utf8_decode(&code, &p, endp, (*wctx)->string_validation_utf8_flags);
678 if (ret < 0) {
685 return ret;
695 if ((ret = avio_open(&(*wctx)->avio, output, AVIO_FLAG_WRITE)) < 0) {
697 "Failed to open output '%s' with error: %s\n", output, av_err2str(ret));
709 ret = (*wctx)->writer->init(*wctx);
710 if (ret < 0)
717 return ret;
776 int invalid_chars_nb = 0, ret = 0;
802 ret = AVERROR_INVALIDDATA;
824 return ret;
834 int ret = 0;
845 ret = validate_string(wctx, &key1, key);
846 if (ret < 0) goto end;
847 ret = validate_string(wctx, &val1, val);
848 if (ret < 0) goto end;
851 if (ret < 0) {
865 return ret;
1930 ret = av_reallocp_array(&(ptr), (new_n), sizeof(*(ptr))); \
1931 if (ret < 0) \
1939 int ret = 0;
1946 if ((ret = print_str_validate(tag->key, tag->value)) < 0)
1951 return ret;
2713 int ret = 0, got_frame = 0;
2721 ret = avcodec_send_packet(dec_ctx, pkt);
2722 if (ret == AVERROR(EAGAIN)) {
2723 ret = 0;
2724 } else if (ret >= 0 || ret == AVERROR_EOF) {
2725 ret = 0;
2729 if (ret >= 0) {
2730 ret = avcodec_receive_frame(dec_ctx, frame);
2731 if (ret >= 0) {
2733 } else if (ret == AVERROR(EAGAIN) || ret == AVERROR_EOF) {
2734 ret = 0;
2741 ret = avcodec_decode_subtitle2(dec_ctx, &sub, &got_frame, pkt);
2751 if (ret < 0)
2752 return ret;
2797 int ret = 0, i = 0, frame_count = 0;
2811 ret = AVERROR(EINVAL);
2821 if ((ret = avformat_seek_file(fmt_ctx, -1, -INT64_MAX, target, INT64_MAX, 0)) < 0) {
2823 interval->start, av_err2str(ret));
2830 ret = AVERROR(ENOMEM);
2835 ret = AVERROR(ENOMEM);
2895 if (ret < 0) {
2899 return ret;
2905 int i, ret = 0;
2910 ret = read_interval_packets(w, ifile, &interval, &cur_ts);
2913 ret = read_interval_packets(w, ifile, &read_intervals[i], &cur_ts);
2914 if (ret < 0)
2919 return ret;
2932 int ret = 0;
3128 ret = show_tags(w, stream->metadata, in_program ? SECTION_ID_PROGRAM_STREAM_TAGS : SECTION_ID_STREAM_TAGS);
3140 return ret;
3146 int i, ret = 0;
3151 ret = show_stream(w, fmt_ctx, i, &ifile->streams[i], 0);
3152 if (ret < 0)
3157 return ret;
3163 int i, ret = 0;
3172 ret = show_tags(w, program->metadata, SECTION_ID_PROGRAM_TAGS);
3173 if (ret < 0)
3179 ret = show_stream(w, fmt_ctx, program->stream_index[i], &ifile->streams[program->stream_index[i]], 1);
3180 if (ret < 0)
3188 return ret;
3194 int i, ret = 0;
3201 ret = show_program(w, ifile, program);
3202 if (ret < 0)
3206 return ret;
3212 int i, ret = 0;
3226 ret = show_tags(w, chapter->metadata, SECTION_ID_CHAPTER_TAGS);
3231 return ret;
3239 int ret = 0;
3258 ret = show_tags(w, fmt_ctx->metadata, SECTION_ID_FORMAT_TAGS);
3262 return ret;
3414 int ret, i;
3420 ret = open_input_file(&ifile, filename, print_filename);
3421 if (ret < 0)
3424 #define CHECK_END if (ret < 0) goto end
3433 ret = avformat_match_stream_specifier(ifile.fmt_ctx,
3438 selected_streams[i] = ret;
3439 ret = 0;
3457 ret = read_packets(wctx, &ifile);
3464 ret = show_programs(wctx, &ifile);
3469 ret = show_streams(wctx, &ifile);
3473 ret = show_chapters(wctx, &ifile);
3477 ret = show_format(wctx, &ifile);
3488 return ret;
3633 int i, ret = 0;
3642 ret++;
3646 return ret;
3652 int ret = 0;
3682 ret = match_section(section_name, show_all_entries, entries);
3683 if (ret == 0) {
3685 ret = AVERROR(EINVAL);
3690 if (ret <= 0)
3696 return ret;
3762 int ret = 0;
3769 ret = AVERROR(EINVAL);
3789 ret = av_parse_time(&interval->start, p, 1);
3790 if (ret < 0) {
3825 ret = av_parse_time(&us, p, 1);
3826 if (ret < 0) {
3838 return ret;
3843 int ret, n, i;
3856 ret = AVERROR(ENOMEM);
3872 ret = parse_read_interval(p, &read_intervals[i]);
3873 if (ret < 0) {
3886 return ret;
4029 int ret, input_ret, i;
4034 ret = pthread_mutex_init(&log_mutex, NULL);
4035 if (ret != 0) {
4083 ret = AVERROR(EINVAL);
4092 ret = AVERROR(ENOMEM);
4099 ret = AVERROR(EINVAL);
4105 if ((ret = av_hash_alloc(&hash, show_data_hash)) < 0) {
4106 if (ret == AVERROR(EINVAL)) {
4122 ret = AVERROR(EINVAL);
4126 if ((ret = writer_open(&wctx, w, w_args,
4146 ret = AVERROR(EINVAL);
4148 ret = probe_file(wctx, input_filename, print_input_filename);
4149 if (ret < 0 && do_show_error)
4150 show_error(wctx, ret);
4153 input_ret = ret;
4156 ret = writer_close(&wctx);
4157 if (ret < 0)
4158 av_log(NULL, AV_LOG_ERROR, "Writing output failed: %s\n", av_err2str(ret));
4160 ret = FFMIN(ret, input_ret);
4174 return ret < 0;