diff --git a/src/opusfile.c b/src/opusfile.c index 7b819bc37a45ca841515e3de4c9badf5ab2c7cc3..cb372e4eeea42931cf73288e7f725dde51cbbe4f 100644 --- a/src/opusfile.c +++ b/src/opusfile.c @@ -2147,12 +2147,10 @@ static ogg_int64_t op_get_granulepos(const OggOpusFile *_of, /*A small helper to determine if an Ogg page contains data that continues onto a subsequent page.*/ static int op_page_continues(ogg_page *_og){ - int header_len; int nlacing; - header_len=_og->header_len; - OP_ASSERT(header_len>=27); + OP_ASSERT(_og->header_len>=27); nlacing=_og->header[26]; - OP_ASSERT(header_len>=27+nlacing); + OP_ASSERT(_og->header_len>=27+nlacing); /*This also correctly handles the (unlikely) case of nlacing==0, because 0!=255.*/ return _og->header[27+nlacing-1]==255;