From cb3de6c6e1bf964d0f7723b1c17a13f51d4668ab Mon Sep 17 00:00:00 2001 From: Jean-Marc Valin Date: Tue, 4 Dec 2012 15:00:15 -0500 Subject: oops --- src/opus_decoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- cgit v1.2.1