ref: 773cd69efd60d4db2f13c7eab2a9447102af15f1
parent: 1f169e7f213754baab2ec46564a190a0a8852eca
author: Timothy B. Terriberry <tterribe@xiph.org>
date: Tue Mar 11 16:25:10 EDT 2014
Minor simplification to op_fetch_headers_impl().
--- a/src/opusfile.c
+++ b/src/opusfile.c
@@ -512,14 +512,10 @@
OP_ADV_OFFSET(_of->offset,OP_CHUNK_SIZE))<0)){
return OP_ENOTFORMAT;
}
- /*If this page also belongs to our Opus stream, submit it and break.*/
- if(_of->ready_state==OP_STREAMSET
- &&_of->os.serialno==ogg_page_serialno(_og)){
- ogg_stream_pagein(&_of->os,_og);
- break;
- }
}
if(OP_UNLIKELY(_of->ready_state!=OP_STREAMSET))return OP_ENOTFORMAT;
+ /*If the first non-header page belonged to our Opus stream, submit it.*/
+ if(_of->os.serialno==ogg_page_serialno(_og))ogg_stream_pagein(&_of->os,_og);
/*Loop getting packets.*/
for(;;){
switch(ogg_stream_packetout(&_of->os,&op)){