diff options
-rw-r--r-- | src/opus_decoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opus_decoder.c b/src/opus_decoder.c index 76f55a80..1f395789 100644 --- a/src/opus_decoder.c +++ b/src/opus_decoder.c @@ -716,7 +716,7 @@ int opus_packet_parse_impl(const unsigned char *data, opus_int32 len, return OPUS_INVALID_PACKET; for (i=0;i<count-1;i++) size[i] = size[count-1]; - } else if(size[count-1] > last_size) + } else if (bytes+size[count-1] > last_size) return OPUS_INVALID_PACKET; } else { |