Lines Matching refs:ret
30 int ret;
44 if ((ret = av_channel_layout_copy(&ch_layout, &in->ch_layout)) < 0)
46 if ((ret = av_opt_set_chlayout(s, "ichl", &ch_layout, 0)) < 0)
48 if ((ret = av_opt_set_int(s, "isf", in->format, 0)) < 0)
50 if ((ret = av_opt_set_int(s, "isr", in->sample_rate, 0)) < 0)
65 if ((ret = av_channel_layout_copy(&ch_layout, &out->ch_layout)) < 0)
67 if ((ret = av_opt_set_chlayout(s, "ochl", &ch_layout, 0)) < 0)
69 if ((ret = av_opt_set_int(s, "osf", out->format, 0)) < 0)
71 if ((ret = av_opt_set_int(s, "osr", out->sample_rate, 0)) < 0)
75 ret = 0;
77 if (ret < 0)
80 return ret;
87 int ret = 0;
99 if ((ret = av_channel_layout_copy(&ch_layout, &in->ch_layout)) < 0)
100 return ret;
104 ret |= AVERROR_INPUT_CHANGED;
119 if ((ret = av_channel_layout_copy(&ch_layout, &out->ch_layout)) < 0)
120 return ret;
124 ret |= AVERROR_OUTPUT_CHANGED;
129 return ret;
135 int ret;
150 ret = swr_convert(s, out_data, out_nb_samples, in_data, in_nb_samples);
152 if (ret < 0) {
155 return ret;
159 out->nb_samples = ret;
187 int ret, setup = 0;
190 if ((ret = swr_config_frame(s, out, in)) < 0)
191 return ret;
192 if ((ret = swr_init(s)) < 0)
193 return ret;
197 if ((ret = config_changed(s, out, in)))
198 return ret;
207 if ((ret = av_frame_get_buffer(out, 0)) < 0) {
210 return ret;