avfilter: convert to new channel layout API

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2021-08-31 11:03:14 -03:00
parent 8a5896ec1f
commit 1f96db959c
133 changed files with 1557 additions and 1055 deletions

View file

@ -148,7 +148,7 @@ const AVFilter ff_vf_reverse = {
static void reverse_samples_planar(AVFrame *out)
{
for (int p = 0; p < out->channels; p++) {
for (int p = 0; p < out->ch_layout.nb_channels; p++) {
switch (out->format) {
case AV_SAMPLE_FMT_U8P: {
uint8_t *dst = (uint8_t *)out->extended_data[p];
@ -192,7 +192,7 @@ static void reverse_samples_planar(AVFrame *out)
static void reverse_samples_packed(AVFrame *out)
{
const int channels = out->channels;
const int channels = out->ch_layout.nb_channels;
switch (out->format) {
case AV_SAMPLE_FMT_U8: {