- if(s->flags&CODEC_FLAG_TRUNCATED){
- int pos= (get_bits_count(&s->gb)+7)>>3;
- pos -= s->parse_context.last_index;
- if(pos<0) pos=0;// padding is not really read so this might be -1
- return pos;
- }else{
- int pos= get_bits_count(&s->gb)>>3;
- if(pos==0) pos=1; //avoid infinite loops (i doubt thats needed but ...)
- if(pos+10>buf_size) pos=buf_size; // oops ;)
+ int pos= get_bits_count(&s->gb)>>3;
+ if(pos==0) pos=1; //avoid infinite loops (i doubt thats needed but ...)
+ if(pos+10>buf_size) pos=buf_size; // oops ;)