ref: 872188c156d5aebebac6823be8fa37b3c04a080c
parent: 41c29626afbd020448e2a192e01f6bcc275d0300
author: Timothy B. Terriberry <[email protected]>
date: Sun Dec 6 12:02:39 EST 2015
Fix set-but-not-used variable warning. When assertions are disabled, nothing else uses header_len.
--- a/src/opusfile.c
+++ b/src/opusfile.c
@@ -2147,12 +2147,10 @@
/*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;