48 int planes = planar ? nb_channels : 1;
55 if (!(data =
av_mallocz(
sizeof(*data) * planes)))
62 data, linesize, full_perms, nb_samples, link->
format,
101 uint64_t channel_layout)
107 if (!samples || !samplesref)
130 samplesref->
format = sample_fmt;
132 memcpy(samples->
data, data,
134 memcpy(samplesref->
data, samples->
data,
sizeof(samples->
data));
147 memcpy(samples-> extended_data, data,
sizeof(*data)*planes);
148 memcpy(samplesref->
extended_data, data,
sizeof(*data)*planes);
172 int linesize,
int perms,
175 uint64_t channel_layout)
179 nb_samples, sample_fmt,
180 channels, channel_layout);