handling end of bitstream file exception