mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 07:31:22 +01:00
Revert "avfilter/af_pan: fix regression introduced with switch to new channel layout API"
This reverts commit 93a9ee7afd.
Was not fixing real problem, issue is probably outside of pan filter.
This commit is contained in:
parent
25f31929b6
commit
458ae405ef
1 changed files with 1 additions and 5 deletions
|
|
@ -313,9 +313,7 @@ static int config_props(AVFilterLink *link)
|
|||
pan->channel_map[i] = ch_id;
|
||||
}
|
||||
|
||||
av_opt_set_chlayout(pan->swr, "ichl", &link->ch_layout, 0);
|
||||
av_opt_set_chlayout(pan->swr, "ochl", &pan->out_channel_layout, 0);
|
||||
av_opt_set_int(pan->swr, "uch", link->ch_layout.nb_channels, 0);
|
||||
av_opt_set_int(pan->swr, "uch", pan->nb_output_channels, 0);
|
||||
swr_set_channel_mapping(pan->swr, pan->channel_map);
|
||||
} else {
|
||||
// renormalize
|
||||
|
|
@ -335,8 +333,6 @@ static int config_props(AVFilterLink *link)
|
|||
for (j = 0; j < link->ch_layout.nb_channels; j++)
|
||||
pan->gain[i][j] /= t;
|
||||
}
|
||||
av_opt_set_chlayout(pan->swr, "ichl", &link->ch_layout, 0);
|
||||
av_opt_set_chlayout(pan->swr, "ochl", &pan->out_channel_layout, 0);
|
||||
swr_set_matrix(pan->swr, pan->gain[0], pan->gain[1] - pan->gain[0]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue