Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avcodec/libopusenc: Allow 5.1(side) channel inputs #386

Merged
merged 2 commits into from
May 2, 2024

Conversation

gnattu
Copy link
Member

@gnattu gnattu commented May 2, 2024

Changes

Previously the 5.1(side) channel layouts will get rejected by libopus encoder because vorbis layout expects 5.1(back) channel layout. However, the side channels and back channels have same position in the layout mapping.
Relax the layout checking to allow such side to back mappings.

Issues

Fixes #248

Prepare for jellyfin/jellyfin-web#5434

Previously the 5.1(side) channel layouts will get rejected by
libopus encoder because vorbis layout expects 5.1(back) channel
layout. However, the side channels and back channels have same
position in the layout mapping.
Relax the layout checking to allow such side to back mappings.
@gnattu gnattu requested a review from a team May 2, 2024 06:29
@gnattu gnattu merged commit af4a142 into jellyfin May 2, 2024
28 checks passed
@gnattu gnattu deleted the opus-allow-5point1-side branch May 2, 2024 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invalid channel layout 5.1(side) for specified mapping family -1 with libopus
3 participants