History

lavfi: add avfilter_get_audio_buffer_ref_from_arrays_channels.

It is the same as avfilter_get_audio_buffer_ref_from_arrays except it has a "channels" and the channel layout can be 0.

Nicolas George committed 13 years ago

Commit 2eb2e171 parent f105fe54 files · +56 −12Browse files

Showing the changes to libavfilter/src_buffer.c (1 of 4 files). Show all

Unified · Split

libavfilter/src_buffer.c+2−0
@@ -81,6 +81,8 @@ int av_asrc_buffer_add_samples(AVFilterContext *ctx, · 80 unmodified lines
8181 {
8282 AVFilterBufferRef *samplesref;
8383
84+ if (!channel_layout)
85+ return AVERROR(EINVAL);
8486 samplesref = avfilter_get_audio_buffer_ref_from_arrays(
8587 data, linesize[0], AV_PERM_WRITE,
8688 nb_samples,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t