avio_seek(bc,pos,SEEK_SET);//note, this may fail if the stream is not seekable, but that should not matter, as in this case we simply start where we currently are
if(pos>=0)
/* Note, this may fail if the stream is not seekable, but that should
while(!bc->eof_reached){
* not matter, as in this case we simply start where we currently are */