54 if (!aresample->
swr) {
84 uint64_t out_layout =
av_get_int(aresample->
swr,
"ocl", NULL);
102 int ratelist[] = { out_rate, -1 };
107 if (!out_samplerates) {
115 int formatlist[] = { out_format, -1 };
122 int64_t layout_list[] = { out_layout, -1 };
141 char inchl_buf[128], outchl_buf[128];
183 int n_out = n_in * aresample->
ratio + 32;
239 *outsamplesref_ret = outsamplesref;
255 outsamplesref->
pts = pts;
270 if (
flush_frame(outlink, 0, &outsamplesref) >= 0) {
286 if ((ret =
flush_frame(outlink, 1, &outsamplesref)) < 0)
302 return prev ? NULL : s->
swr;
305 #define OFFSET(x) offsetof(AResampleContext, x)
306 #define FLAGS AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
348 .priv_class = &aresample_class,
349 .
inputs = aresample_inputs,