mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
avfilter: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
8a5896ec1f
commit
1f96db959c
133 changed files with 1557 additions and 1055 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue