Browse Source

opus_header: fix channel mapping family 1 parsing

Fixes #27808

(cherry picked from commit 79fa6af0a9)
cherry-pick-c5513cf9
Tristan Matthews 4 years ago
committed by Francois Cartegnie
parent
commit
a761e1c202
  1. 2
      modules/codec/opus_header.c

2
modules/codec/opus_header.c

@ -205,7 +205,7 @@ int opus_header_parse(const unsigned char *packet, int len, OpusHeader *h)
h->nb_coupled = ch;
/* Multi-stream support */
if(h->channel_mapping == 2)
if(h->channel_mapping <= 2)
{
if (h->nb_coupled + h->nb_streams > 255)
return 0;

Loading…
Cancel
Save