Commit 8822f862 authored by Monty's avatar Monty
Browse files

Although not strictly a bug, decode_packed_entry_number() was not always

forcing buffer eop correctly when it hit end of packet (as it was using 
look() not read())



git-svn-id: https://svn.xiph.org/trunk/Tremor@13180 0101bb08-14d6-0310-b084-bc0e0c8e3800
parent ab1af8d4
......@@ -171,7 +171,11 @@ STIN long decode_packed_entry_number(codebook *book,
while(lok<0 && read>1)
lok = oggpack_look(b, --read);
if(lok<0)return -1;
if(lok<0){
oggpack_adv(b,1); /* force eop */
return -1;
}
/* bisect search for the codeword in the ordered list */
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment