Skip to content

Commit

Permalink
Fix sprop-stereo handling (#312)
Browse files Browse the repository at this point in the history
* Fix sprop-stereo handling

When sprop-stereo is "0" we are still assuming that is enabled and enabling stereo decoding.

* Update commonUtils.ts
  • Loading branch information
ggarber authored Nov 26, 2024
1 parent e43b3b7 commit a632529
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers/sdp/commonUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ export function applyCodecParameters({
const spropStereo = codec.parameters['sprop-stereo'];

if (spropStereo !== undefined) {
parameters.stereo = spropStereo ? 1 : 0;
parameters.stereo = Number(spropStereo) ? 1 : 0;
}

break;
Expand Down

0 comments on commit a632529

Please sign in to comment.