48 static const int64_t channel_layouts[] = { -1 };
71 #define FIFO_INIT_SIZE 8
109 "Cannot buffer more frames. Consume some available frames "
110 "before adding new ones.\n");
131 "%d buffers queued in %s, something may be wrong.\n",
158 || !strcmp(ctx->
filter->
name,
"ffabuffersink"));
182 || !strcmp(ctx->
filter->
name,
"ffbuffersink"));
195 || !strcmp(ctx->
filter->
name,
"ffabuffersink"));
246 .
name =
"ffbuffersink",
247 .description =
NULL_IF_CONFIG_SMALL(
"Buffer video frames, and make them available to the end of the filter graph."),
253 .
inputs = ffbuffersink_inputs,
268 .
name =
"buffersink",
269 .description =
NULL_IF_CONFIG_SMALL(
"Buffer video frames, and make them available to the end of the filter graph."),
275 .
inputs = buffersink_inputs,
344 .
name =
"ffabuffersink",
345 .description =
NULL_IF_CONFIG_SMALL(
"Buffer audio frames, and make them available to the end of the filter graph."),
350 .
inputs = ffabuffersink_inputs,
365 .
name =
"abuffersink",
366 .description =
NULL_IF_CONFIG_SMALL(
"Buffer audio frames, and make them available to the end of the filter graph."),
371 .
inputs = abuffersink_inputs,
386 avfilter_vsink_buffer.
inputs[0].start_frame ||
391 avfilter_vsink_ffbuffersink.
inputs[0].end_frame ||
409 int ret = 0, have_samples = 0, need_samples;
424 while (have_samples < nb_samples) {
429 nb_samples = have_samples;
436 nb_samples - have_samples);
438 have_samples, 0, need_samples,
439 nb_channels, in_buf->
format);
440 have_samples += need_samples;
441 if (need_samples < in_buf->audio->nb_samples) {
445 nb_channels, in_buf->
format);