diff options
Diffstat (limited to 'src/opus_decoder.c')
-rw-r--r-- | src/opus_decoder.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/opus_decoder.c b/src/opus_decoder.c index a57e1a26..f2a6e7d4 100644 --- a/src/opus_decoder.c +++ b/src/opus_decoder.c @@ -84,6 +84,10 @@ int opus_decode(OpusDecoder *st, const unsigned char *data, short pcm_celt[960*2]; int audiosize; + /* Payloads of 1 (2 including ToC) or 0 trigger the PLC/DTX */ + if (len<=2) + data = NULL; + if (data != NULL) { /* Decoding mode/bandwidth/framesize from first byte */ |