diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2012-12-05 00:00:15 +0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2012-12-05 00:00:15 +0400 |
commit | cb3de6c6e1bf964d0f7723b1c17a13f51d4668ab (patch) | |
tree | a156e67c3e202a1e8bfe496f5ac4be20f5a5a05b | |
parent | 0ad0753717165b32fa78947e5ce764ff1ee72739 (diff) |
oopsexp_wip
-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 e4baef1e..1fd35755 100644 --- a/src/opus_decoder.c +++ b/src/opus_decoder.c @@ -791,7 +791,7 @@ int opus_decode_native(OpusDecoder *st, const unsigned char *data, tot_offset += offset; - if (count*st->frame_size > frame_size) + if (count*packet_frame_size > frame_size) return OPUS_BUFFER_TOO_SMALL; /* Update the state as the last step to avoid updating it on an invalid packet */ |