summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2012-12-04 15:00:15 -0500
committerJean-Marc Valin <jmvalin@jmvalin.ca>2012-12-04 15:00:15 -0500
commitcb3de6c6e1bf964d0f7723b1c17a13f51d4668ab (patch)
treea156e67c3e202a1e8bfe496f5ac4be20f5a5a05b
parent0ad0753717165b32fa78947e5ce764ff1ee72739 (diff)
downloadopus-exp_wip.tar.gz
-rw-r--r--src/opus_decoder.c2
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 */